JimStoner
26 Jun 2008, 11:58 AM
Hi,
I've run into a problem where the paging bar doesn't get displayed correctly in a picklist dialog window if the showCategoryComboBox property is set to true. Basically, it seems like the extra space the category combo box takes up pushes the paging bar "behind" the OK/Cancel buttons.
However, if you resize the picklist dialog window, it recalculates the positioning and fixes the problem.
So, as a workaround, I'm using a few lines of code right after I call ws.PickList() to force a resize about half a second after the picklist window is created. My code looks like this:
plWindow = Ext.getCmp('xnd-picklist');
( function () {
plWindow.setHeight(540); // modify this to include your default window height
}).defer(500);
Has anyone else encountered this? Do you have a better solution for it?
Thanks,
Jim
I've run into a problem where the paging bar doesn't get displayed correctly in a picklist dialog window if the showCategoryComboBox property is set to true. Basically, it seems like the extra space the category combo box takes up pushes the paging bar "behind" the OK/Cancel buttons.
However, if you resize the picklist dialog window, it recalculates the positioning and fixes the problem.
So, as a workaround, I'm using a few lines of code right after I call ws.PickList() to force a resize about half a second after the picklist window is created. My code looks like this:
plWindow = Ext.getCmp('xnd-picklist');
( function () {
plWindow.setHeight(540); // modify this to include your default window height
}).defer(500);
Has anyone else encountered this? Do you have a better solution for it?
Thanks,
Jim