javascript - Bootstrap modal forces scroll to top -


i'm trying implement feed of posts, clicking on post open modal. i'm using angular frontend framework , decided use bootstrap modal, since works angular. problem is, modal forces body scroll top when showing. ofcourse not ideal when scrolling through feed.

the css line below culprit. why causes problem occur, not know, kind of need scrollbar showing. loaading of dynamic content otherwise make layout jump around.

html {     overflow-y: scroll; } 

removing line fine right now, need find fix soon, layout jump horizontally when loading new content, if scrollbar not visible , appearing. have clue why causes problem, , how can possibly fix it?

sounds modal problem. make sure modal or outer-most container has position: fixed, sounds disrupting flow of <body> element.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -