PDA

View Full Version : Tab panel not fits the screen, changes when window is minimized



raj542
6 Jun 2012, 2:33 AM
Hi everyone,
i had a problem, i am creating an image in Tabpanel, when i minimize the window, the image position is being changed. i gave the property 'align: fit' even though image is being changed.

Please help in solving this.

raj542
7 Jun 2012, 1:36 AM
Its solved by using this code:
var S = this.tabpanelFormation.getPosition(); if (Ext.isIE8 && S[0] == 751) { this.tabpanelFormation.setPagePosition(749,370,true); this.tabpanelFormation.setHeight(230); this.tabpanelFormation.setWidth(350); }
If its maximised then S[0] = 751. By this we can find whether its maximised or not.