Make getCanvasLimit more efficient by only calling getPosition once.
This commit is contained in:
parent
cefc9a9177
commit
16b3ef77d1
|
@ -255,8 +255,9 @@ var UI;
|
||||||
// Hide the scrollbars until the size is calculated
|
// Hide the scrollbars until the size is calculated
|
||||||
container.style.overflow = "hidden";
|
container.style.overflow = "hidden";
|
||||||
|
|
||||||
var w = Util.getPosition(container).width;
|
var pos = Util.getPosition(container);
|
||||||
var h = Util.getPosition(container).height;
|
var w = pos.width;
|
||||||
|
var h = pos.height;
|
||||||
|
|
||||||
container.style.overflow = "visible";
|
container.style.overflow = "visible";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue