PDA

View Full Version : Iframes, panels and scrolling...



gizzmo
21 Feb 2007, 5:12 AM
Hi

I having problems with scrolling and panels.

I have a borderlayout with a west and center region. The center region can have multiple tabs with an iframe. The iframe contains radion buttons and dropdowns, that sometimes reloads a page...
Then it scrolls up the same height that the tabs are.

Page looks fine before:
http://pro2.procensor.se/yahoo/yui10.nsf/img01.jpg

But after the page are reloaded it is scrolled the same amount of height as the tabs?
http://pro2.procensor.se/yahoo/yui10.nsf/img02.jpg

using autoscroll on the borderlayout and fittoframe on iframe...
tried to alter these but the same result...

// Johan

jack.slocum
21 Feb 2007, 9:17 AM
Ext doesn't touch the iframe or scroll positions. My question would be, are you using display none anywhere that would hit the iframe or do you have "hideOnLayout" set to true?

gizzmo
21 Feb 2007, 10:39 AM
Hi Jack,

I do not use display none or "hideOnLayout". The iframe however loads a page using framesets...
And when I reloads one of the frames this happens. It is an old application I try to apply this to.


<frameset frameborder="1" border="1" framespacing="1" rows="180,1*">

<frame frameborder="1" scrolling="no" name="FrameUpper" src="SingleCatNav2?OpenForm&AreaCode=710&BaseTarget=FrameLower">
<frame frameborder="1" scrolling="yes" name="FrameLower" src="HelpLU.Key/Projektprocess?OpenDocument">

</frameset>

However, if I change the frameset into a page using to iframes instead, I can get it to work if I resize the second one to fit the region in the content panel.


<iframe id="FrameUpper" frameborder="0" scrolling="no" width="100%" height="180" src="SingleCatNav2?OpenForm&AreaCode=710BaseTarget=FrameLower"></iframe>
<iframe id="FrameLower" frameborder="0" width="100%" src="Quality0.nsf/HelpLU.Key/Projektprocess?OpenDocument"></iframe>

But this is not a good solution. I have to think on something else...