OSDN Git Service

Version 0.3.34, fix X.Dom.Builder, fix X.Timer, detect ScrollBar size.
[pettanr/clientJs.git] / 0.6.x / js / dom / 15_XDomStyle.js
index 31ddc30..b567484 100644 (file)
@@ -1018,8 +1018,17 @@ X.Dom.Node.prototype.css = function( nameOrObj /* orUnitID, valuOrUnitOrName */
 
 X.Dom.Node.prototype.cssText = function( v ){
        var obj, i, l, attr, name;
+       if( v === '' ){
+               delete this._css;
+               this._state &= ~X.Dom.State.IE5_DISPLAY_NONE_FIX;
+               this._dirty |= X.Dom.Dirty.CSS;
+               this.parent && this._reserveUpdate();
+               delete this._cssText;
+               return this;
+       } else
        if( X.Type.isString( v ) ){
                delete this._css;
+               this._state &= ~X.Dom.State.IE5_DISPLAY_NONE_FIX;
                obj = {};
                v   = v.split( ';' );
                for( i = 0, l = v.length; i < l; ++i ){
@@ -1186,6 +1195,9 @@ X.Dom.listenOnce( X.Dom.Event.DOM_INIT, function(){
                output[ size ] = xnode.css( 'fontSize', size ).height();// / base;
        };
        
-       xnode.cssText( '' ).empty();
+       // 以下解決、scroll 中に timer が無視される iOS の問題が原因(dom追加で起こったスクロール?)
+       // ipod touch 1st で必要なんですけど、、、
+       //xnode._rawNode.style.cssText = ''; 
+       xnode.cssText( '' ).empty(); //._startUpdate();
 } );