OSDN Git Service

Version 0.6.87, fix SuperConstructor @ X.Class & force convert to PointerEvent @...
[pettanr/clientJs.git] / 0.6.x / js / 01_dom / 13_XDomBoxModel.js
index 9076194..3d6f78f 100644 (file)
@@ -90,10 +90,10 @@ Node.prototype.width = function(){
        if( this._state & X.Dom.State.DISPLAY_NONE ) return 0;\r
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'width' );\r
-               return this._rawNode.offsetWidth;\r
+               return this._rawObject.offsetWidth;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).offsetWidth;\r
+               return ( this._rawObject || this._ie4getRawNode() ).offsetWidth;\r
        } else {\r
                \r
        };\r
@@ -112,10 +112,10 @@ Node.prototype.height = function(){
        if( this._state & X.Dom.State.DISPLAY_NONE ) return 0;\r
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'height' );\r
-               return this._rawNode.offsetHeight;\r
+               return this._rawObject.offsetHeight;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).offsetHeight;\r
+               return ( this._rawObject || this._ie4getRawNode() ).offsetHeight;\r
        } else {\r
                \r
        };\r
@@ -134,10 +134,10 @@ Node.prototype.clientWidth = function(){
        if( this._state & X.Dom.State.DISPLAY_NONE ) return 0;\r
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'width' );\r
-               return this._rawNode.clientWidth;\r
+               return this._rawObject.clientWidth;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).clientWidth;\r
+               return ( this._rawObject || this._ie4getRawNode() ).clientWidth;\r
        } else {\r
                \r
        };\r
@@ -156,10 +156,10 @@ Node.prototype.clientHeight = function(){
        if( this._state & X.Dom.State.DISPLAY_NONE ) return 0;\r
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'height' );\r
-               return this._rawNode.clientHeight;\r
+               return this._rawObject.clientHeight;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).clientHeight;\r
+               return ( this._rawObject || this._ie4getRawNode() ).clientHeight;\r
        } else {\r
                \r
        };\r
@@ -178,10 +178,10 @@ Node.prototype.scrollWidth = function(){
        if( this._state & X.Dom.State.DISPLAY_NONE ) return 0;\r
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'width' );\r
-               return this._rawNode.scrollWidth;\r
+               return this._rawObject.scrollWidth;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).scrollWidth;\r
+               return ( this._rawObject || this._ie4getRawNode() ).scrollWidth;\r
        } else {\r
                \r
        };\r
@@ -200,10 +200,10 @@ Node.prototype.scrollHeight = function(){
        if( this._state & X.Dom.State.DISPLAY_NONE ) return 0;\r
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'height' );\r
-               return this._rawNode.scrollHeight;\r
+               return this._rawObject.scrollHeight;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).scrollHeight;\r
+               return ( this._rawObject || this._ie4getRawNode() ).scrollHeight;\r
        } else {\r
                \r
        };\r
@@ -222,10 +222,10 @@ Node.prototype.scrollLeft = function(){
        if( this._state & X.Dom.State.DISPLAY_NONE ) return 0;\r
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'width' );\r
-               return this._rawNode.scrollLeft;\r
+               return this._rawObject.scrollLeft;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).scrollLeft;\r
+               return ( this._rawObject || this._ie4getRawNode() ).scrollLeft;\r
        } else {\r
                \r
        };\r
@@ -244,10 +244,10 @@ Node.prototype.scrollTop = function(){
        if( this._state & X.Dom.State.DISPLAY_NONE ) return 0;\r
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'width' );\r
-               return this._rawNode.scrollTop;\r
+               return this._rawObject.scrollTop;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).scrollTop;\r
+               return ( this._rawObject || this._ie4getRawNode() ).scrollTop;\r
        } else {\r
                \r
        };\r
@@ -275,10 +275,10 @@ Node.prototype.x = function(){
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'left' );\r
                // this.css( X.Dom.Style.Unit.px, 'translateX' );\r
-               return this._rawNode.offsetLeft;\r
+               return this._rawObject.offsetLeft;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).offsetLeft;\r
+               return ( this._rawObject || this._ie4getRawNode() ).offsetLeft;\r
        } else {\r
                \r
        };\r
@@ -298,10 +298,10 @@ Node.prototype.y = function(){
        if( X.Dom.DOM_W3C ){\r
                // this.css( X.Dom.Style.Unit.px, 'top' );\r
                // this.css( X.Dom.Style.Unit.px, 'transisitonY' );\r
-               return this._rawNode.offsetTop;\r
+               return this._rawObject.offsetTop;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               return ( this._rawNode || this._ie4getRawNode() ).offsetTop;            \r
+               return ( this._rawObject || this._ie4getRawNode() ).offsetTop;          \r
        } else {\r
                \r
        };\r
@@ -326,10 +326,10 @@ Node.prototype.offset = function( /* xnodeParent */ ){
        };\r
        \r
        if( X.Dom.DOM_W3C ){\r
-               elm = this._rawNode;\r
+               elm = this._rawObject;\r
        } else\r
        if( X.Dom.DOM_IE4 ){\r
-               elm = this._rawNode || this._ie4getRawNode();           \r
+               elm = this._rawObject || this._ie4getRawNode();         \r
        } else {\r
                \r
        };\r