Angular UI引导折叠式-展开创建滚动条和页面“跳转” [英] Angular UI bootstrap accordian - expand creates scrollbar and page "jump"
问题描述
我正在使用角度ui引导自举手风琴。一切工作都很好,除非当我展开一个足以使浏览器显示页面滚动条的手风琴节时,整个页面向左震荡,滚动条的宽度相等。当手风琴小到不需要滚动条时,页面就会摇回原始大小。
I'm using the angular ui bootstrap accordian. Everything works great except when I expand an accordian section that is big enough to cause the browser to show a scrollbar for the page, the whole page jolts to the left by the amount of the width of the scrollbar. When the accordian is small enough that a scrollbar isn't needed, the page jolts back to the original size.
我不确定该怎么做。 。这是否需要黑客入侵,还是有使用风琴手设置或引导程序的优雅解决方案?
I'm not sure what to do about this...does this require a hack, or is there some elegant solution using accordian settings or bootstrap?
推荐答案
我认为您唯一的解决方案是始终显示滚动条
I think your only solution is to always show the scrollbar
这篇关于Angular UI引导折叠式-展开创建滚动条和页面“跳转”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!