зеркало из https://github.com/mozilla/gecko-dev.git
Bug 700770 - Style Inspector's Rule View can't scroll vertically followup, fixes inplace editing. r=robcee.
This commit is contained in:
Родитель
9f6d376f31
Коммит
93ced8b073
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче