Bug 1016047 - Stop box model highlighter causing toolbox jumping on small screen r=bgrins

This commit is contained in:
Michael Ratcliffe 2014-06-11 16:05:22 +01:00
parent cbe5d2d41f
commit 0626f25d04

View File

@ -508,6 +508,10 @@ BoxModelHighlighter.prototype = Heritage.extend(XULBasedHighlighter.prototype, {
this._svgRoot = this._createSVGNode("root", "svg", this._highlighterContainer);
// Set the SVG canvas height to 0 to stop content jumping around on small
// screens.
this._svgRoot.setAttribute("height", "0");
this._boxModelContainer = this._createSVGNode("container", "g", this._svgRoot);
this._boxModelNodes = {