PDA

View Full Version : how to increase the panel height and width which is created inside the tabpanel?



raj542
4 Jun 2012, 1:12 AM
Hi all,

I have a TabPanel, where the TabPanel contains two parts, one part has details about the image and the down part has the image which is created using Panel. Now the image is unreadable in IE8, so i want to increase the size of the Imagepanel in the Tabpanel. How can i achieve this?

Thanks,

Raj

sword-it
4 Jun 2012, 1:37 AM
HI!
You may try to find browser, if it is IE8, you can increase the height and width of your panel.
Sample code:-




if (Ext.isIE8) {
// browser = "IE8";
yourImagePanel.setHeight(200);
yourImagePanel.setWidth(400)
}

raj542
4 Jun 2012, 10:07 PM
Hi sword-it,

I have used the above code like this:
if (Ext.isIE8) { // browser = "IE8";
this.tabpanelFormation.setHeight(250);
this.tabpanelFormation.setWidth(350);
this.tabpanelFormation.setPagePosition(750,350,true);
}

Problem: My problem is almost solved, but when i add MenuBar or Toolbar its size is becoming normal and viceversa.

Please tell me how to solve this issue.

Raj