PDA

View Full Version : Changing border of a specific ContentPanel



gigel
31 Aug 2007, 1:04 AM
Hello!

I'm using "Ext.LayoutDialog" to create some inline popups. I'm adding an IFRAME inside the dialog with "dialog.getLayout().add("center", new Ext.ContentPanel(content));".
The page that opens inside the IFRAME has the same background color as the dialog and I would like to remove the 1px border of the ContentPanel inside the dialog.
I tried editing the CSS file but it removes all the borders of the interface (which is bad).
I also tried to do that programatically, by finding the DOM object of that panel (the DIV with class="x-layout-panel x-layout-panel-center") and setting "...style.border = 'none'", but I couldn't find that specific DIV.
Any ideas?

P.S. See the attached image to better understand what I am trying to achieve.

Thanks!