Web Inspector: Tab picker is briefly visible when TabBar initially shown
authormattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jun 2018 22:41:00 +0000 (22:41 +0000)
committermattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jun 2018 22:41:00 +0000 (22:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=186317

Reviewed by Joseph Pecoraro.

* UserInterface/Views/TabBar.js:
(WI.TabBar): Picker should be initially hidden.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232524 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/TabBar.js

index 8d5742b..1845678 100644 (file)
@@ -1,3 +1,13 @@
+2018-06-05  Matt Baker  <mattbaker@apple.com>
+
+        Web Inspector: Tab picker is briefly visible when TabBar initially shown
+        https://bugs.webkit.org/show_bug.cgi?id=186317
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/TabBar.js:
+        (WI.TabBar): Picker should be initially hidden.
+
 2018-06-05  Nikita Vasilyev  <nvasilyev@apple.com>
 
         Web Inspector: Text in "Add New Class" in auto-capitalizes
index 48e7c9f..9cdd0a5 100644 (file)
@@ -47,7 +47,7 @@ WI.TabBar = class TabBar extends WI.View
         }
 
         this._tabPickerTabBarItem = new WI.PinnedTabBarItem("Images/TabPicker.svg", WI.UIString("Show hidden tabs"));
-        this._tabPickerTabBarItem.element.classList.add("tab-picker");
+        this._tabPickerTabBarItem.element.classList.add("tab-picker", "hidden");
         this._tabPickerTabBarItem.element.addEventListener("contextmenu", this._handleTabPickerTabContextMenu.bind(this));
         this.addTabBarItem(this._tabPickerTabBarItem, {suppressAnimations: true});
     }