fix dojo columnpicker glitches for restrained window dimensions
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Jan 2010 21:48:40 +0000 (21:48 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Jan 2010 21:48:40 +0000 (21:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15265 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/GridColumnPicker.js
Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js

index 947601f..3d00dda 100644 (file)
@@ -30,7 +30,7 @@ if(!dojo._hasResource["openils.GridColumnPicker"]) {
             this.dialog = dialog;
             this.grid = grid;
             this.structure = structure;
-            this.dialogTable = dialog.domNode.getElementsByTagName('tbody')[0];
+            this.dialogTable = dialog.containerNode.getElementsByTagName('tbody')[0];
             this.baseCellList = this.structure[0].cells[0].slice();
             this.build();
             this.grid.model.fields.get(0).sort = false;
index e00823e..377b934 100644 (file)
@@ -36,7 +36,7 @@ if(!dojo._hasResource["openils.widget.GridColumnPicker"]) {
             this.structure = structure;
             if(!structure) 
                 this.structure = this.grid.attr('structure');
-            this.dialogTable = this.dialog.domNode.getElementsByTagName('tbody')[0];
+            this.dialogTable = this.dialog.containerNode.getElementsByTagName('tbody')[0];
             this.baseCellList = this.structure[0].cells[0].slice();
             this.build();
             this.authtoken = authtoken;
@@ -61,7 +61,7 @@ if(!dojo._hasResource["openils.widget.GridColumnPicker"]) {
                 "<thead><tr><th width='33%'>Column</th><th width='33%'>Display</th><th width='33%'>Auto Width</th></tr></thead>" +
                 "<tbody><tr><td><div name='cancel_button'/></td><td><div name='save_button'/></td></tr></tbody></table>" });
 
-            dialog.domNode.appendChild(table);
+            dialog.containerNode.appendChild(table);
 
             var button = new dijit.form.Button({label:'Save'}, dojo.query('[name=save_button]', table)[0]);
             button.onClick = function() { dialog.hide(); self.update(true); };