X_Node_updateTimerID && X_Node_startUpdate();\r
\r
if( X_UA_DOM.W3C ){\r
- // this.css( X_Node_CSS_Unit.px, 'width' );\r
- return this._rawObject.offsetWidth;\r
+ // TODO width : length + overflow : hidden ならそれを返す? <- block or inline\r
+ return this._rawObject ? this._rawObject.offsetWidth : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).offsetWidth;\r
\r
if( X_UA_DOM.W3C ){\r
// this.css( X_Node_CSS_Unit.px, 'height' );\r
- return this._rawObject.offsetHeight;\r
+ return this._rawObject ? this._rawObject.offsetHeight : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).offsetHeight;\r
\r
if( X_UA_DOM.W3C ){\r
// this.css( X_Node_CSS_Unit.px, 'width' );\r
- return this._rawObject.clientWidth;\r
+ return this._rawObject ? this._rawObject.clientWidth : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).clientWidth;\r
\r
if( X_UA_DOM.W3C ){\r
// this.css( X_Node_CSS_Unit.px, 'height' );\r
- return this._rawObject.clientHeight;\r
+ return this._rawObject ? this._rawObject.clientHeight : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).clientHeight;\r
\r
if( X_UA_DOM.W3C ){\r
// this.css( X_Node_CSS_Unit.px, 'width' );\r
- return this._rawObject.scrollWidth;\r
+ return this._rawObject ? this._rawObject.scrollWidth : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).scrollWidth;\r
X_Node_updateTimerID && X_Node_startUpdate();\r
\r
if( X_UA_DOM.W3C ){\r
- return this._rawObject.scrollHeight;\r
+ return this._rawObject ? this._rawObject.scrollHeight : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).scrollHeight;\r
\r
if( X_UA_DOM.W3C ){\r
// this.css( X_Node_CSS_Unit.px, 'width' );\r
- return this._rawObject.scrollLeft;\r
+ return this._rawObject ? this._rawObject.scrollLeft : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).scrollLeft;\r
\r
if( X_UA_DOM.W3C ){\r
// this.css( X_Node_CSS_Unit.px, 'width' );\r
- return this._rawObject.scrollTop;\r
+ return this._rawObject ? this._rawObject.scrollTop : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).scrollTop;\r
if( X_UA_DOM.W3C ){\r
// this.css( X_Node_CSS_Unit.px, 'left' );\r
// this.css( X_Node_CSS_Unit.px, 'translateX' );\r
- return this._rawObject.offsetLeft;\r
+ return this._rawObject ? this._rawObject.offsetLeft : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
// pixelLeft http://www.din.or.jp/~hagi3/JavaScript/JSTips/DHTML/ProbIE5.htm\r
if( X_UA_DOM.W3C ){\r
// this.css( X_Node_CSS_Unit.px, 'top' );\r
// this.css( X_Node_CSS_Unit.px, 'transisitonY' );\r
- return this._rawObject.offsetTop;\r
+ return this._rawObject ? this._rawObject.offsetTop : 0;\r
} else\r
if( X_UA_DOM.IE4 ){\r
return ( this._rawObject || X_Node__ie4getRawNode( this ) ).offsetTop; \r
X_Node_updateTimerID && X_Node_startUpdate();\r
\r
if( X_UA_DOM.W3C ){\r
- return X_Node_getPosition( this._rawObject );\r
+ return this._rawObject ? X_Node_getPosition( this._rawObject ) : { x : 0, y : 0 };\r
} else\r
if( X_UA_DOM.IE4 ){\r
return X_Node_getPosition( this._rawObject || X_Node__ie4getRawNode( this ) );\r