mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 700770 - Style Inspector's Rule View can't scroll vertically followup, fixes inplace editing. r=robcee.
This commit is contained in:
parent
f027243067
commit
b27813f4ce
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user