PDA

View Full Version : [a2-rev6] Borderlayout: Unwanted Scroller when using iframe



Wolfgang
3 Mar 2007, 8:39 PM
When using Borderlayout with a Contentpanel in "center" that targets an iframe, that iframe shows scroller (horz/vert) until one opens a 2nd panel in the "center" region. (Given that the scroller would not be necessary). Also, when the 2nd panel is destroyed afterwards, the scrollers are gone in the panel that holds the iframe.

This happens only in FF2 and not in IE7.

If however, autoScroll is not set, then this does not happen (in both browser types).


center: {
titlebar: true,
autoScroll:true // must not be set when iframes are used with FF
}

I think this is a bug.

Animal
3 Mar 2007, 11:37 PM
When using an iframe, use autoScroll:false on the Region, and fitToFrame:true on the ContentPanel which houses the iframe.

Wolfgang
5 Mar 2007, 1:20 AM
Thank you.