File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ class CustomResize {
30
30
CustomResize . resizeListeners . forEach ( ( entry , ref ) => {
31
31
const changed = CustomResize . checkSizes ( entry , ref ) ;
32
32
33
- if ( changed ) {
33
+ if ( changed || ( entry && ! entry . _hasBeenRendered ) ) {
34
34
CustomResize . updateSizes ( entry , ref . offsetWidth , ref . offsetHeight ) ;
35
35
entry . callbacks . forEach ( el => el ( ) ) ;
36
+ entry . _hasBeenRendered = true ;
36
37
}
37
38
} ) ;
38
39
}
Original file line number Diff line number Diff line change @@ -164,6 +164,8 @@ class Table extends UI5Element {
164
164
this . _delegates . push ( this . _itemNavigation ) ;
165
165
166
166
this . fnOnRowFocused = this . onRowFocused . bind ( this ) ;
167
+
168
+ this . _handleResize = this . popinContent . bind ( this ) ;
167
169
}
168
170
169
171
onBeforeRendering ( ) {
@@ -183,11 +185,11 @@ class Table extends UI5Element {
183
185
}
184
186
185
187
onEnterDOM ( ) {
186
- ResizeHandler . register ( this . getDomRef ( ) , this . popinContent . bind ( this ) ) ;
188
+ ResizeHandler . register ( this . getDomRef ( ) , this . _handleResize ) ;
187
189
}
188
190
189
191
onExitDOM ( ) {
190
- ResizeHandler . deregister ( this . getDomRef ( ) , this . popinContent . bind ( this ) ) ;
192
+ ResizeHandler . deregister ( this . getDomRef ( ) , this . _handleResize ) ;
191
193
}
192
194
193
195
onRowFocused ( event ) {
You can’t perform that action at this time.
0 commit comments