D
D
Dies Irae2018-09-20 08:12:36
css
Dies Irae, 2018-09-20 08:12:36

How to make bootstrap affix inside iFrame?

Made a floating nav-bar using bootstrap affix . If the page is loaded directly, everything is ok, but when loaded inside the iFrame, the nav-bar simply stretches to its full height and does not move.
I tried to bind offset to window.parent, as written here , but it didn't help (mb did something wrong).
Any suggestions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dies Irae, 2018-09-20
@YumeReaver

Here's what I came up with:
on the window.onscroll event, a function is called that changes the nav-bar's margin. Everything is smoothed out with a webkit. Yes, a crutch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question