Iframes, panels and scrolling... - Ext JS

用户Johan在使用包含多个标签页及内嵌iFrame的BorderLayout布局时遇到滚动条异常问题。当iFrame内的页面重新加载后,滚动条会自动滚动到与标签页相同的高度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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:


But after the page are reloaded it is scrolled the same amount of height as the tabs?


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

// Johan
Reply With Quote
  #2  
Old 02-21-2007, 11:17 AM
Default

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?
Reply With Quote
  #3  
Old 02-21-2007, 12:39 PM
Default

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...
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值