以折叠模式启动时 ASP.NET Accordion 高度混乱
我有一个由此标记呈现的 ASP.NET 手风琴(删除了一些 CssClass 属性):
<toolkit:Accordion runat="server" AutoSize="Fill"
RequireOpenedPane="false" SelectedIndex="0" Height="400">...
这在高度方面呈现正常。现在,当我更改一项设置 SelectedIndex="-1"
以使所有内容在加载时折叠时,当您开始打开窗格时,高度会变得混乱。 可见高度仍为 400 像素,但即使有滚动条,窗格的内容也会被剪裁在底部(请参见屏幕截图 http://awesomescreenshot.com/00e6jj00f)。我猜在这种情况下,标题的高度不会从窗格高度中减去。另外,当我将 height 属性更改为 300 时,可见高度 300 也会发生相同的行为。在 css 文件中,我仅更改颜色、边框和一些填充。那里没有设置高度或溢出。
我测试了 IE6、IE9(几种模式)、Firefox 3、Chrome 8 和 Safari 5(Win)。
有谁知道如何解决这个问题或者我可能做错了什么?
I have an ASP.NET accordion rendered by this markup (removed some CssClass properties):
<toolkit:Accordion runat="server" AutoSize="Fill"
RequireOpenedPane="false" SelectedIndex="0" Height="400">...
This renders OK in terms of height. Now when I change one setting SelectedIndex="-1"
to have everything collapsed at load time, the height is messed up when you start opening panes. The visible height remains 400px but the content of the panes is clipped at the bottom even though there is a scrollbar (see screenshot http://awesomescreenshot.com/00e6jj00f). I'm guessing the height of the headers is not subtracted from the pane height in this case. Also when I changed the height property to 300, the same behavior happens with visible height 300. In the css file I only change colors, borders and some padding. No heights or overflow set there.
I tested IE6, IE9 (several modes), Firefox 3, Chrome 8 and Safari 5 (Win).
Does anyone have an idea on how to fix this or what I could be doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过下载工具包的源代码,修复其中计算高度的 JavaScript 来解决此问题...重新编译新的 dll。
You can fix this by downloading the source code for the toolkit, fixing the JavaScript in there that calculates the height... recompile amuse the new dll.