Revision: 4364
          http://vexi.svn.sourceforge.net/vexi/?rev=4364&view=rev
Author:   jeffbuhrt
Date:     2012-02-23 19:00:12 +0000 (Thu, 23 Feb 2012)
Log Message:
-----------
Testcase to show a grid fails to expand the grid with long text, but works fine 
with short text.

Added Paths:
-----------
    trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_grid2.t

Added: trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_grid2.t
===================================================================
--- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_grid2.t    
                        (rev 0)
+++ trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_grid2.t    
2012-02-23 19:00:12 UTC (rev 4364)
@@ -0,0 +1,50 @@
+<vexi 
+       xmlns:ui="vexi://ui" 
+       xmlns:meta="vexi://meta" 
+       xmlns:wi="vexi.widget"
+       xmlns:lay="vexi.layout"
+>
+    static.name = "Grid Layout Test Case";
+    static.category = "Test Cases";
+    
+       <wi:scrollpane orient="vertical" padding="2" align="topleft" 
autohide="true" fill="orange">     
+               
+               <lay:grid id="grid" cols="2" align="top" vshrink="true" 
fill="pink">
+               
+                       <ui:box text="Left header 4" width="150" fill="yellow" 
/>
+                       <ui:box text="Right header" fill="green" />
+                       
+                       <ui:box id="twocol" colspan="2" fill="blue" />
+       
+                       <ui:box text="Left text" maxlength="1" width="150" 
fill="yellow" />
+                       <ui:box text="Rightside text" fill="green"/>
+                       
+               </lay:grid>
+               
+               
+               <!-- everything below allows switching the text. 
+                       Long text: fails to expand the grid
+                       Short text: ok, grid expands
+               -->
+
+               <wi:button id="switchText" />
+               
+               var whichText = true;
+               $switchText.action ++= function(v) {
+                       shortText = "Short text";
+                       longText="This is some long text. If this is short, the 
grid will expand to fill.";
+                       
+                       if (whichText) {
+                               $twocol.text = shortText;
+                               $switchText.text = longText;
+                       }
+                       else {
+                               $switchText.text = shortText;
+                               $twocol.text = longText;
+                       }
+                       whichText = !whichText;
+                       cascade = v;
+               }
+               $switchText.action = true;
+       </wi:scrollpane>
+</vexi>
\ No newline at end of file

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


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to