\r
data.preMesure( w, h );\r
\r
- console.log( w + ' > ' + data.boxWidth );\r
+ //console.log( w + ' > ' + data.boxWidth );\r
\r
// data.boxWidth と data.boxHeight のどちらかでも Infinity\r
if( isNeedsDetection && data.boxWidth + data.boxHeight === XUI_Attr_AUTO ) return false;\r
_h = data.contentHeight;\r
\r
if( ( uinodes = data.uinodes ) && ( l = uinodes.length ) ){\r
- console.log( _w + ' x ' + _h + ' l:' + l );\r
+ //console.log( _w + ' x ' + _h + ' l:' + l );\r
for( i = 0; i < l; ++i ){\r
node = uinodes[ i ];\r
node.calculate( false, _x, _y, _w, _h );\r
pointerChildren : true,\r
through : false,\r
\r
- scrollingX : 0, // TODO 現在のスクロール位置\r
- scrollingY : 0, // TODO \r
+ scrollXEm : 0,\r
+ scrollYEm : 0,\r
\r
Constructor : function( user, layout, args ){\r
var i = 0,\r
\r
capcher : function( x, y ){\r
var uinodes, child, _x, _y, hit, i;\r
+ \r
if( this.pointerDisabled ) return false;\r
+\r
delete this.hitChildData;\r
x -= this.boxX;\r
y -= this.boxY;\r
if( this.pointerChildren && ( uinodes = this.uinodes ) && ( i = uinodes.length ) ){\r
- _x = x - this.scrollingX;\r
- _y = y - this.scrollingY;\r
+ _x = x - this.scrollXEm;\r
+ _y = y - this.scrollYEm;\r
for( ; i; ){\r
child = uinodes[ --i ];\r
if( !child.pointerDisabled && child.boxX <= _x && _x < child.boxX + child.boxWidth && child.boxY <= _y && _y < child.boxY + child.boxHeight && child.capcher( _x, _y ) ){\r
};\r
};\r
if( this.through ){\r
- this.hitChildData && !this.hovering && ( this.rootData.hoverList[ this.rootData.hoverList.length ] = this );\r
+ this.hitChildData && !this.hovering && ( XUI_UINODES_HOVER[ XUI_UINODES_HOVER.length ] = this );\r
return !!this.hitChildData;\r
};\r
hit = 0 <= x && x < this.boxWidth && 0 <= y && y < this.boxHeight;\r
- ( this.hitChildData || hit ) && !this.hovering && ( this.rootData.hoverList[ this.rootData.hoverList.length ] = this );\r
- if( hit && this.hitChildData === null ) this.rootData.targetNodeData = this;\r
+ ( this.hitChildData || hit ) && !this.hovering && ( XUI_UINODES_HOVER[ XUI_UINODES_HOVER.length ] = this );\r
+ if( hit && this.hitChildData === null ){\r
+ XUI_uinodeTarget = this;\r
+ };\r
return hit || !!this.hitChildData;\r
},\r
\r
};\r
p3 && data.phase < 3 && data.creationComplete();\r
};\r
+ \r
+ console.log( 'addAt レイアウト 4? ' + this.phase );\r
4 <= this.phase && this.rootData.reserveCalc();\r
},\r
\r
delete this.rootData;\r
delete this.parent;\r
delete this.parentData;\r
- delete this.xnode;\r
};\r
delete this.phase;\r
}\r
},\r
\r
clone : function( opt_cloneListener ){\r
- var clone = XUI_AbstractUINode.prototype.clone.call( this, opt_cloneListener ),\r
+ var clone = X.UI.AbstractUINode.prototype.clone.call( this, opt_cloneListener ),\r
uinodes = X_Pair_get( this ).uinodes,\r
i = 0,\r
l = uinodes && uinodes.length,\r