@@ -303,7 +303,7 @@ class Tab extends React.Component {
303
303
props . isPinnedTab = isPinned
304
304
props . isPrivateTab = privateState . isPrivateTab ( currentWindow , frameKey )
305
305
props . isActive = ! ! frameStateUtil . isFrameKeyActive ( currentWindow , frameKey )
306
- props . tabWidth = currentWindow . getIn ( [ 'ui' , 'tabs' , 'fixTabWidth' ] )
306
+ props . tabWidth = isPinned ? null : currentWindow . getIn ( [ 'ui' , 'tabs' , 'fixTabWidth' ] )
307
307
props . isPreview = frameKey === previewFrameKey /* || frameKey === 2 */ // <-- uncomment to force 1 preview tab for style inspection
308
308
props . anyTabIsPreview = previewFrameKey != null
309
309
props . themeColor = tabUIState . getThemeColor ( currentWindow , frameKey )
@@ -331,13 +331,6 @@ class Tab extends React.Component {
331
331
return props
332
332
}
333
333
334
- componentWillReceiveProps ( nextProps ) {
335
- if ( this . props . tabWidth && ! nextProps . tabWidth ) {
336
- // remember the width so we can transition from it
337
- this . originalWidth = this . elementRef . getBoundingClientRect ( ) . width
338
- }
339
- }
340
-
341
334
componentDidUpdate ( prevProps ) {
342
335
if ( prevProps . tabWidth && ! this . props . tabWidth && ! this . props . partOfFullPageSet ) {
343
336
window . requestAnimationFrame ( ( ) => {
@@ -480,7 +473,7 @@ const styles = StyleSheet.create({
480
473
boxSizing : 'border-box' ,
481
474
position : 'relative' ,
482
475
overflow : 'hidden' ,
483
- flex : 1 ,
476
+ flex : '1 1 0' ,
484
477
// put the top border underneath tab-stip top border, and
485
478
// the left border underneath the previous tab's right border
486
479
margin : `0 0 0 -${ theme . tab . borderWidth } px` ,
0 commit comments