1
0
Fork 0
forked from 0x2620/oxjs
This commit is contained in:
rolux 2013-12-06 22:15:04 +01:00
commit 37ab78f05b
7 changed files with 22 additions and 23 deletions

View file

@ -413,11 +413,11 @@ Ox.load.UI = function(options, callback) {
Ox.UI.PATH = Ox.PATH + 'Ox.UI/';
//@ Ox.UI.SCOLLBAR_SIZE <str> size of scrollbar
Ox.UI.SCROLLBAR_SIZE = $.browser.webkit ? 8 : (function() {
var inner = $('<p>').css({
var inner = Ox.$('<p>').css({
height: '200px',
width: '100%'
}),
outer = $('<div>').css({
outer = Ox.$('<div>').css({
height: '150px',
left: 0,
overflow: 'hidden',
@ -426,8 +426,7 @@ Ox.load.UI = function(options, callback) {
visibility: 'hidden',
width: '200px'
}).append(inner).appendTo($('body')),
width;
width = inner[0].offsetWidth;
width = inner[0].offsetWidth;
outer.css({overflow: 'scroll'});
width = 1 + width - (inner[0].offsetWidth == width
? outer[0].clientWidth : inner[0].offsetWidth);