Give the volume/copy creator a horizontal scrollbar if needed, and auto-scroll it...
authorJason Etheridge <jason@esilibrary.com>
Wed, 23 Mar 2011 15:09:46 +0000 (11:09 -0400)
committerJason Etheridge <jason@esilibrary.com>
Wed, 23 Mar 2011 15:09:46 +0000 (11:09 -0400)
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul

index 1c9933e..1174e7c 100644 (file)
@@ -200,6 +200,12 @@ function my_init() {
             g.gather_copies_soon();
         }
 
+        try {
+            $('main').parentNode.scrollLeft = 9999;
+        } catch(E) {
+            dump('Error in volume_copy_creator.js, my_init(), trying to auto-scroll to the far right: ' + E + '\n');
+        }
+
     } catch(E) {
         var err_msg = $("commonStrings").getFormattedString('common.exception', ['cat/volume_copy_creator.js', E]);
         try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); dump(js2JSON(E)); }
index 80f8634..9e88c1a 100644 (file)
@@ -36,6 +36,7 @@
     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
 
+<vbox flex="1" class="my_overflow">
     <vbox id="summary_box" oils_persist="height"/>
     <splitter
         collapse="before"
@@ -97,6 +98,7 @@
             <button id="Create" disabled="true" oncommand="g.stash_and_close('unified_interface');"/>
         </hbox>
     </vbox>
+</vbox>
 
 </window>