Revision: 1931
          http://svn.sourceforge.net/vexi/?rev=1931&view=rev
Author:   clrg
Date:     2007-07-06 02:43:55 -0700 (Fri, 06 Jul 2007)

Log Message:
-----------
Restore tables properly by fixing scroll component layout

Modified Paths:
--------------
    widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/cell.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/table.t

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/cell.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/cell.t      
2007-07-06 09:29:05 UTC (rev 1930)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/cell.t      
2007-07-06 09:43:55 UTC (rev 1931)
@@ -7,7 +7,7 @@
     
     <cell align="left" padding="1 2">
          
-         datatype ++= static.typeFunc;
+         thisbox.datatype ++= static.typeFunc;
          
     </cell>
     
@@ -32,6 +32,7 @@
     static.toggleValueWriteFunc = function(v)
     {
         cascade = v;
+        var val = trapee.value;
         trapee[0].display = v == "TRUE" or v == "true" or (typeof(v) != 
"string" and val == true);
     }
     

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/table.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/table.t     
2007-07-06 09:29:05 UTC (rev 1930)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/table.t     
2007-07-06 09:43:55 UTC (rev 1931)
@@ -10,25 +10,34 @@
        else lib.table(thisbox);
     </ui:box>
     <ui:box redirect="$content" orient="vertical">
-        <ui:box id="headport" height="0" layout="absolute">
-            <ui:box id="headview" align="topleft" vshrink="true" />
-            $headview.height ++= function(v) { height = v; }
+        <ui:box vshrink="true">
+            <ui:box id="headport" height="0" layout="absolute">
+                <ui:box id="headview" align="topleft" vshrink="true" />
+                $headview.height ++= function(v) { height = v; }
+            </ui:box>
+            <ui:box id="topinset" shrink="true" />
         </ui:box>
-        <ui:box shrink="true" />
         
-        <ui:box id="bodyport" fill="white" layout="absolute">
-            <ui:box id="bodyview" align="topleft" vshrink="true" />
-            <ui:box id="bodyover" align="topleft" vshrink="true" />
+        <ui:box>
+            <ui:box id="bodyport" fill="white" layout="absolute">
+                <ui:box id="bodyview" align="topleft" vshrink="true" />
+                <ui:box id="bodyover" align="topleft" vshrink="true" />
+            </ui:box>
+            <scrollbar id="vscroll" orient="vertical" />
         </ui:box>
-        <scrollbar id="vscroll" orient="vertical" />
         
-        <ui:box id="footport" height="0" layout="absolute">
-            <ui:box id="footview" align="topleft" vshrink="true" />
-            $footview.height ++= function(v) { height = v; }
+        <ui:box vshrink="true">
+            <ui:box id="footport" height="0" layout="absolute">
+                <ui:box id="footview" align="topleft" vshrink="true" />
+                $footview.height ++= function(v) { height = v; }
+            </ui:box>
+            <ui:box id="middleinset" shrink="true" />
         </ui:box>
-        <ui:box shrink="true" />
         
-        <scrollbar id="hscroll" orient="horizontal" />
+        <ui:box vshrink="true">
+            <scrollbar id="hscroll" orient="horizontal" />
+            <ui:box id="bottominset" shrink="true" />
+        </ui:box>
         <ui:box id="content" shrink="true" />
         
         // assign views
@@ -62,6 +71,14 @@
         $hscroll.addListener($headport);
         $hscroll.addListener($footport);
         
+        $vscroll.width ++= function(v)
+        {
+            cascade = v;
+            $topinset.width = v;
+            $middleinset.width = v;
+            $bottominset.width = v;
+        }
+        
         rdrt..addRedirect(thisbox, $bodyport, "fill");
         
     </ui:box>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to