Changeset 5071
- Timestamp:
- 03/18/08 06:12:08 (10 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.base.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.base.js
r5052 r5071 26 26 var tmp = $('<div class="ui-resizable-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body'); 27 27 28 //if (!$.browser.safari) 29 //tmp.appendTo('body'); 30 28 31 //Opera and Safari set width and height to 0px instead of auto 29 32 //Safari returns rgba(0,0,0,0) when bgcolor is not set 30 33 $.ui.cssCache[name] = !!( 31 ( (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) ||34 (!/auto|default/.test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) || 32 35 !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))) 33 36 );
