You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2025/05/05 11:21:12 UTC
(myfaces-tobago) 01/02: fix(sheet): column width FR-values
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 5bff98c739130aad3bb062ccc21f0b4030dfc7ab
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Mon May 5 13:11:07 2025 +0200
fix(sheet): column width FR-values
Fix JavaScript syntax error.
Issue: TOBAGO-2407
---
tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts b/tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts
index 700d88972f..1e5944df5f 100644
--- a/tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts
@@ -92,8 +92,10 @@ export class Sheet extends HTMLElement {
}
this.initScrollbarFiller();
- const resizeObserver = new ResizeObserver((entries) => this.fixColumnWidth());
- resizeObserver.observe(this);
+ if (this.dataset.tobagoLayout) {
+ const resizeObserver = new ResizeObserver((entries) => this.fixColumnWidth());
+ resizeObserver.observe(this);
+ }
// resize column: mouse events -------------------------------------------------------------------------------- //