parameter passing works. Let clam_shell default to a left pane and a right pane
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Jun 2005 02:40:04 +0000 (02:40 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Jun 2005 02:40:04 +0000 (02:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@996 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/main/app_shell_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.js
Evergreen/staff_client/chrome/content/evergreen/main/clam_shell_overlay.xul

index 358c39f..72e4b0f 100644 (file)
@@ -68,7 +68,7 @@
                        'main_tabbox',
                        'chrome://evergreen/content/main/clam_shell.xul',
                        'test',
-                       { 'vertical' : true }
+                       { }
                ); "/>
 
        <command id="cmd_broken" oncommand="
index ecbcc7b..c581cef 100644 (file)
@@ -2,8 +2,12 @@ sdump('D_TRACE','Loading clam_shell.js\n');
 
 function clam_shell_init(p) {
        dump("TESTING: clam_shell.js: " + mw.G['main_test_variable'] + '\n');
-       if (d.params && d.params.vertical) {
-               p.d.setAttribute('orient','vertical');
+       if (p) {
+               if (p.horizontal) {
+                       get_widget(p.d,'ClamShell_main').orient = 'horizontal';
+               } else if (p.vertical) {
+                       get_widget(p.d,'ClamShell_main').orient = 'vertical';
+               }
        }
 }
 
index 96d37d2..e5a773a 100644 (file)
@@ -11,7 +11,7 @@
 </commandset>
 
 <!-- main widget for clam_shell -->
-<box id="ClamShell_main" flex="1" orient="vertical">
+<box id="ClamShell_main" flex="1" orient="horizontal">
        <deck id="ClamShell_first_deck" flex="1"/>
        <splitter id="ClamShell_splitter" />
        <deck id="CLamShell_second_deck" flex="1"/>