From 93ced8b0734026ed42d29fbbfca45c033fd08db0 Mon Sep 17 00:00:00 2001 From: Dave Camp Date: Tue, 15 Nov 2011 16:47:14 -0800 Subject: [PATCH] Bug 700770 - Style Inspector's Rule View can't scroll vertically followup, fixes inplace editing. r=robcee. --- browser/devtools/styleinspector/CssRuleView.jsm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/browser/devtools/styleinspector/CssRuleView.jsm b/browser/devtools/styleinspector/CssRuleView.jsm index 190ecbd38284..889cc6d9c498 100644 --- a/browser/devtools/styleinspector/CssRuleView.jsm +++ b/browser/devtools/styleinspector/CssRuleView.jsm @@ -659,10 +659,6 @@ function CssRuleView(aDoc, aStore) this.element.setAttribute("tabindex", "0"); this.element.classList.add("ruleview"); this.element.flex = 1; - - // Give a relative position for the inplace editor's measurement - // span to be placed absolutely against. - this.element.style.position = "relative"; } CssRuleView.prototype = { @@ -762,6 +758,10 @@ RuleEditor.prototype = { this.element = this.doc.createElementNS(HTML_NS, "div"); this.element._ruleEditor = this; + // Give a relative position for the inplace editor's measurement + // span to be placed absolutely against. + this.element.style.position = "relative"; + // Add the source link. let source = createChild(this.element, "div", { class: "ruleview-rule-source",