From da0fb1af507d59891a7d3848aca0ff92533f11f2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 28 Jun 2012 12:34:18 +0200 Subject: [PATCH] remove test element --- source/Ox.UI/Ox.UI.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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