OSDN Git Service

Version 0.6.154, working X.UI!
[pettanr/clientJs.git] / 0.6.x / js / 20_ui / 12_HBox.js
index 1efff7a..8429a4d 100644 (file)
@@ -37,8 +37,8 @@ var XUI_Layout_Horizontal = X[ 'UI' ][ 'Layout' ][ 'Horizontal' ] = XUI_createLa
                gapX           = XUI_AbstractUINode_calcValue( attrs[ data.supportAttrs.gapX.No ], contentW );\r
                childW         = XUI_AbstractUINode_calcValue( attrs[ data.supportAttrs.childWidth.No ], contentW );\r
                childH         = XUI_AbstractUINode_calcValue( attrs[ data.supportAttrs.childHeight.No ], contentH );\r
-               _x             = data.contentL;\r
-               _y             = data.contentT;         \r
+               _x             = 0; //data.contentL;\r
+               _y             = 0; //data.contentT;            \r
 \r
                if( !detectionPhase ) ret = false;\r
 \r
@@ -46,7 +46,7 @@ var XUI_Layout_Horizontal = X[ 'UI' ][ 'Layout' ][ 'Horizontal' ] = XUI_createLa
                        _h = 0;\r
                        for( i = 0; i < l; ++i ){\r
                                node = uinodes[ i ];\r
-                               node.calculate( detectionPhase, _x, _y, childW, childH );\r
+                               node.calculate( detectionPhase, _x, 0, childW, childH );\r
                                _x += node.boxWidth + gapX;\r
                                if( autoH ){\r
                                        if( node.boxHeight !== XUI_Attr_AUTO ){\r
@@ -69,10 +69,10 @@ var XUI_Layout_Horizontal = X[ 'UI' ][ 'Layout' ][ 'Horizontal' ] = XUI_createLa
                if( detectionPhase ){\r
                        if( autoW ) data.contentWidth  = _x;\r
                        if( autoH ) data.contentHeight = _h;\r
-                       _x = data.contentL;\r
+                       _x = 0; //data.contentL;\r
                        for( i = 0; i < l; ++i ){\r
                                node = uinodes[ i ];\r
-                               node.calculate( false, _x, _y, data.contentWidth, data.contentHeight );\r
+                               node.calculate( false, _x, 0, data.contentWidth, data.contentHeight );\r
                                _x += node.boxWidth + gapX;\r
                        };\r
                        data.postMesure();\r