forked from 0x2620/oxjs
use Ox.$
This commit is contained in:
parent
a97170ea5b
commit
37ab78f05b
7 changed files with 22 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue