Angular UI bootstrap accordian - expand creates scrollbar and page “jump”

ぐ巨炮叔叔 提交于 2019-12-11 03:12:48

问题


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?


回答1:


I think your only solution is to always show the scrollbar

How to always show the vertical scrollbar in a browser?



来源:https://stackoverflow.com/questions/27261130/angular-ui-bootstrap-accordian-expand-creates-scrollbar-and-page-jump

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!