Bug 700770 - Style Inspector's Rule View can't scroll vertically followup, fixes inplace editing. r=robcee.

This commit is contained in:
Dave Camp 2011-11-15 16:47:14 -08:00
parent f027243067
commit b27813f4ce

View File

@ -659,10 +659,6 @@ function CssRuleView(aDoc, aStore)
this.element.setAttribute("tabindex", "0"); this.element.setAttribute("tabindex", "0");
this.element.classList.add("ruleview"); this.element.classList.add("ruleview");
this.element.flex = 1; 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 = { CssRuleView.prototype = {
@ -762,6 +758,10 @@ RuleEditor.prototype = {
this.element = this.doc.createElementNS(HTML_NS, "div"); this.element = this.doc.createElementNS(HTML_NS, "div");
this.element._ruleEditor = this; 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. // Add the source link.
let source = createChild(this.element, "div", { let source = createChild(this.element, "div", {
class: "ruleview-rule-source", class: "ruleview-rule-source",