REGRESSION (r226994): Web Inspector: Styles: Suggestions popover floats in top-left...
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / SpreadsheetStyleProperty.js
index 09f8c83..a3c5a83 100644 (file)
@@ -25,7 +25,7 @@
 
 WI.SpreadsheetStyleProperty = class SpreadsheetStyleProperty extends WI.Object
 {
-    constructor(delegate, property, index)
+    constructor(delegate, property)
     {
         super();
 
@@ -34,7 +34,6 @@ WI.SpreadsheetStyleProperty = class SpreadsheetStyleProperty extends WI.Object
         this._delegate = delegate || null;
         this._property = property;
         this._element = document.createElement("div");
-        this._element.dataset.propertyIndex = index;
 
         this._contentElement = null;
         this._nameElement = null;
@@ -59,6 +58,11 @@ WI.SpreadsheetStyleProperty = class SpreadsheetStyleProperty extends WI.Object
     get valueTextField() { return this._valueTextField; }
     get enabled() { return this._property.enabled; }
 
+    set index(index)
+    {
+        this._element.dataset.propertyIndex = index;
+    }
+
     detached()
     {
         this._property.__propertyView = null;