File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ class SegmentedButton extends UI5Element {
111
111
this . percentageWidthSet = false ; // set to true whenever we set 100% width to the component
112
112
this . hasPreviouslyFocusedItem = false ;
113
113
114
- this . _handleResizeBound = this . _handleResize . bind ( this ) ;
114
+ this . _handleResizeBound = this . _doLayout . bind ( this ) ;
115
115
this . i18nBundle = getI18nBundle ( "@ui5/webcomponents" ) ;
116
116
}
117
117
@@ -128,7 +128,7 @@ class SegmentedButton extends UI5Element {
128
128
}
129
129
130
130
async onAfterRendering ( ) {
131
- await this . measureButtonsWidth ( ) ;
131
+ await this . _doLayout ( ) ;
132
132
}
133
133
134
134
prepareToMeasureButtons ( ) {
@@ -211,7 +211,7 @@ class SegmentedButton extends UI5Element {
211
211
}
212
212
}
213
213
214
- async _handleResize ( ) {
214
+ async _doLayout ( ) {
215
215
const buttonsHaveWidth = this . widths && this . widths . some ( button => button . offsetWidth > 2 ) ; // 2 are the pixel's added for rounding & IE
216
216
if ( ! buttonsHaveWidth ) {
217
217
await this . measureButtonsWidth ( ) ;
You can’t perform that action at this time.
0 commit comments