diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index aef05fc8..0be39d66 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -417,7 +417,10 @@ Ox.load.UI = function(options, callback) { width; width = inner[0].offsetWidth; outer.css({overflow: 'scroll'}); - return 1 + width - (inner[0].offsetWidth == width ? outer[0].clientWidth : inner[0].offsetWidth); + width = 1 + width - (inner[0].offsetWidth == width + ? outer[0].clientWidth : inner[0].offsetWidth); + outer.remove(); + return width; })(); //@ Ox.UI.getBarSize get bar size by name // fixme: the follwing should be deprecated