[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6108] trunk/UI



Revision: 6108
          http://sourceforge.net/p/ledger-smb/code/6108
Author:   einhverfr
Date:     2013-10-03 09:23:28 +0000 (Thu, 03 Oct 2013)
Log Message:
-----------
Correcting height management in UI/lib/TabSet.js
Added resize feature to tabularForm but having trouble testing.

Modified Paths:
--------------
    trunk/UI/Contact/contact.js
    trunk/UI/lib/TabSet.js
    trunk/UI/lib/TabularForm.js

Modified: trunk/UI/Contact/contact.js
===================================================================
--- trunk/UI/Contact/contact.js	2013-10-03 05:05:35 UTC (rev 6107)
+++ trunk/UI/Contact/contact.js	2013-10-03 09:23:28 UTC (rev 6108)
@@ -5,7 +5,7 @@
           'dojo/window',
          'dojo/domReady!'],
        function(query, dom, tc, win){
-           var tabs = new tc({}, dom.byId('contact_tabs'));
+           var tabs = new tc({doLayout: false}, dom.byId('contact_tabs'));
            tabs.startup(activeDiv, win.getBox());
        } 
  

Modified: trunk/UI/lib/TabSet.js
===================================================================
--- trunk/UI/lib/TabSet.js	2013-10-03 05:05:35 UTC (rev 6107)
+++ trunk/UI/lib/TabSet.js	2013-10-03 09:23:28 UTC (rev 6108)
@@ -63,7 +63,6 @@
                myself.selectChild(ad);
             });
             this.inherited(arguments);
-            this.resize(boxSize);
           }
           
         });

Modified: trunk/UI/lib/TabularForm.js
===================================================================
--- trunk/UI/lib/TabularForm.js	2013-10-03 05:05:35 UTC (rev 6107)
+++ trunk/UI/lib/TabularForm.js	2013-10-03 09:23:28 UTC (rev 6108)
@@ -138,13 +138,46 @@
                var spc = new cp({content: ' '});
                this.addChild(spc); 
            }
-        }
-/*
+        },
         resize: function(){
-           //TODO:  this needs to detect container size and restructure
-           //accordingly. --CT
+            var winsize = win.getBox();
+            switch (this.vertlabelsize){
+            case 'mobile':
+                if (winsize.h >= 480){
+                   break;
+                }
+            case 'small':
+                if (winsize.h >= 768){
+                   break;
+                }
+            case 'med':
+                if (winsize.h >= 992){
+                   break;
+                }
+            default:
+               this.cols = 1;
+               this.orientation = 'vert'; 
+            }
+            if (this.orientation == 'horiz'){
+               switch (this.vertsize){
+               case 'mobile':
+                if (winsize.h >= 480){
+                   break;
+                }
+               case 'small':
+                if (winsize.h >= 768){
+                   break;
+                }
+               case 'med':
+                if (winsize.h >= 992){
+                   break;
+                }
+               default:
+                this.cols = 1;
+               };
+            }
+            return this.inherited(arguments);
         }
-*/
         });
      });
 

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits