Bug Tracker

Changeset 5071

Show
Ignore:
Timestamp:
03/18/08 06:12:08 (10 months ago)
Author:
braeker
Message:

Css detection checking cursor

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.base.js

    r5052 r5071  
    2626            var tmp = $('<div class="ui-resizable-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body'); 
    2727             
     28            //if (!$.browser.safari) 
     29                //tmp.appendTo('body');  
     30             
    2831            //Opera and Safari set width and height to 0px instead of auto 
    2932            //Safari returns rgba(0,0,0,0) when bgcolor is not set 
    3033            $.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')) ||  
    3235                !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))) 
    3336            );