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
Родитель 9f6d376f31
Коммит 93ced8b073
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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",