I created a popup window on a screen that had a viewport with a grid. I noticed that when I resized the browser's text with Ctrl+, that the bbar at the bottom of the grid in the view port would just resize and stay in view. This was not the case with the window or the bbar that I had at the bottom of the window. Is there some way, without taking over the entire screen, to make the window resize itself and have the bbar remain on the window when I use CTRL+ in the browser? I have the window set up to allow scrolling and that is fine, but I need to see the bottom of the window too.
This is the code for the Window:
This is the code for the Window:
Code:
selectionWindowUi = Ext.extend(Ext.Window, { width: 860, height: 680, modal: true, closable: false, autoScroll: true, constrainHeader: true, resizable: false, initComponent: function() { this.items = [ { xtype: 'panel', height: 40, layout: 'hbox', padding: 10, flex: 1, shim: false, animCollapse: false, region: 'north', id: 'activeCheckPanel', items: [ { xtype: 'checkbox', boxLabel: 'Active Record?', flex: 1, id: 'activeExhibit' }, { xtype: 'spacer', flex: 1, width: 5 }, { xtype: 'displayfield', value: 'Company', flex: 1, id: 'company' }, { xtype: 'spacer', flex: 1, width: 5 }, { xtype: 'displayfield', value: 'Location', flex: 1, id: 'location' }, { xtype: 'spacer', flex: 1, width: 5 }, { xtype: 'label', text: 'Exhibit Name:', flex: 1, width: 100 }, { xtype: 'textfield', flex: 1, allowBlank: false, id: 'exhibitName' }, { xtype: 'hidden', flex: 1, width: 0, id: 'emCmp' }, { xtype: 'hidden', flex: 1, width: 0, id: 'emLoc' } ] }, { flex: 1, region: 'center', xtype: 'selectionpanel' } ]; this.bbar = { xtype: 'toolbar', height: 35, width: 1387, flex: 1, items: [ { xtype: 'button', text: 'Save', icon: '/vvresources/icons/save.gif', ref: '../btnSave', id: 'btnSave' }, { xtype: 'tbseparator' }, { xtype: 'button', text: 'Cancel', icon: '/vvresources/icons/cancel.png', ref: '../btnCancel', id: 'btnCancel' } ] }; selectionWindowUi.superclass.initComponent.call(this); } });
Comment