chrome-devtools-frontend 1.0.1032322 → 1.0.1032471

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,6 +186,12 @@ export class InspectorView extends VBox implements ViewLocationResolver {
186
186
 
187
187
  this.tabbedPane = this.tabbedLocation.tabbedPane();
188
188
  this.tabbedPane.element.classList.add('main-tabbed-pane');
189
+ // The 'Inspect element' and 'Device mode' buttons in the tabs toolbar takes longer to load than
190
+ // the tabs themselves, so a space equal to the buttons' total width is preemptively allocated
191
+ // to prevent to prevent a shift in the tab layout. Note that when DevTools cannot be docked,
192
+ // the Device mode button is not added and so the allocated space is smaller.
193
+ const allocatedSpace = Root.Runtime.Runtime.queryParam(Root.Runtime.ConditionName.CAN_DOCK) ? '69px' : '41px';
194
+ this.tabbedPane.leftToolbar().element.style.minWidth = allocatedSpace;
189
195
  this.tabbedPane.registerRequiredCSS(inspectorViewTabbedPaneStyles);
190
196
  this.tabbedPane.addEventListener(TabbedPaneEvents.TabSelected, this.tabSelected, this);
191
197
  this.tabbedPane.setAccessibleName(i18nString(UIStrings.panels));
package/package.json CHANGED
@@ -56,5 +56,5 @@
56
56
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
57
57
  "watch": "vpython third_party/node/node.py --output scripts/watch_build.js"
58
58
  },
59
- "version": "1.0.1032322"
59
+ "version": "1.0.1032471"
60
60
  }