OSDN Git Service

Version 0.6.154, working X.UI!
[pettanr/clientJs.git] / 0.6.x / js / 20_ui / 11_VBox.js
index 2a6be63..298565f 100644 (file)
@@ -43,16 +43,15 @@ var XUI_Layout_Vertical = X[ 'UI' ][ 'Layout' ][ 'Vertical' ] = XUI_createLayout
                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
+               _y             = 0; //data.contentT;\r
 \r
                if( !detectionPhase ) ret = false;\r
 \r
                if( l ){\r
                        _w = 0;\r
-                       console.log( '-----------' );\r
                        for( i = 0; i < l; ++i ){\r
                                node = uinodes[ i ];\r
-                               node.calculate( detectionPhase, _x, _y, contentW, childH );\r
+                               node.calculate( detectionPhase, 0, _y, contentW, childH );\r
                                _y += node.boxHeight + gapY;\r
                                console.dir( node );\r
                                // 概算のみ\r
@@ -76,11 +75,11 @@ var XUI_Layout_Vertical = X[ 'UI' ][ 'Layout' ][ 'Vertical' ] = XUI_createLayout
 \r
                if( detectionPhase ){\r
                        if( autoW ) data.contentWidth  = _w;\r
-                       if( autoH ) data.contentHeight = _y - data.contentT;\r
-                       _y = data.contentT;\r
+                       if( autoH ) data.contentHeight = _y;// - data.contentT;\r
+                       _y = 0;//data.contentT;\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, 0, _y, data.contentWidth, data.contentHeight );\r
                                _y += node.boxHeight + gapY;\r
                        };\r
                        data.postMesure();\r