Web Inspector: Elements: Computed: the collapsed state of the Variables section shoul...
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Aug 2019 18:43:07 +0000 (18:43 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Aug 2019 18:43:07 +0000 (18:43 +0000)
https://bugs.webkit.org/show_bug.cgi?id=200725

Reviewed by Joseph Pecoraro.

* UserInterface/Views/ComputedStyleDetailsPanel.js:
(WI.ComputedStyleDetailsPanel.prototype.initialLayout):
Use a different identifier string for the Variable section so it preserves its own collapsed
collapsed state independent of the Properties section.

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

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

index f9792ba..0831dd2 100644 (file)
@@ -1,5 +1,17 @@
 2019-08-14  Devin Rousso  <drousso@apple.com>
 
+        Web Inspector: Elements: Computed: the collapsed state of the Variables section should be separate from the collapsed state of the Properties section
+        https://bugs.webkit.org/show_bug.cgi?id=200725
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/ComputedStyleDetailsPanel.js:
+        (WI.ComputedStyleDetailsPanel.prototype.initialLayout):
+        Use a different identifier string for the Variable section so it preserves its own collapsed
+        collapsed state independent of the Properties section.
+
+2019-08-14  Devin Rousso  <drousso@apple.com>
+
         Web Inspector: Elements: Computed: the background of the Properties/Variables sections should match the Box Model section when expanded
         https://bugs.webkit.org/show_bug.cgi?id=200724
 
index 98befce..8f86296 100644 (file)
@@ -116,7 +116,7 @@ WI.ComputedStyleDetailsPanel = class ComputedStyleDetailsPanel extends WI.StyleD
 
         let variablesRow = new WI.DetailsSectionRow;
         let variablesGroup = new WI.DetailsSectionGroup([variablesRow]);
-        this._variablesSection = new WI.DetailsSection("computed-style-properties", WI.UIString("Variables"), [variablesGroup]);
+        this._variablesSection = new WI.DetailsSection("computed-style-variables", WI.UIString("Variables"), [variablesGroup]);
         this._variablesSection.addEventListener(WI.DetailsSection.Event.CollapsedStateChanged, this._handleVariablesSectionCollapsedStateChanged, this);
 
         this.addSubview(this._variablesTextEditor);