Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1200185

    Hi Kriesi support-team,
    I use an iframe on one side.
    I have now noticed that when the page loads, it always scrolls to the iframe instead of displaying the page header.
    When I use a link to navigate to a specific other anchor point on the same page, the page also scrolls to the iFrame.
    So I suppose it has to do with the integrated iframe.

    This effect also occurs in the backend – after updating changes.

    Is it possible to stop this?
    Best regards
    Grobi

    #1203163

    Hey Grobi,
    Sorry for the late reply, I’m not sure what is causing this but your iframe looks like it is part of a plugin, is it?
    You can link to your page with #top at the end of your link like the link in the Private Content area and the page won’t scroll down.

    Best regards,
    Mike

    #1203993

    Hey Mike, nice to hear from you!!
    Thanks for this simple and successful idea. I could have thaught of this… :-)
    Indeed I do not understand, why that happens on the backend as welll.

    But for frontend you solved my problem. Thanks!
    Best regards
    Grobi

    #1204366

    Hi,
    Thank you for the feedback, and I’m glad this helps.
    Examining your iframe link the end of the link contains ?startpage=1 which when loaded triggers it’s javascript that changes the link to ?startpage=1#page_1 which is the anchor it scrolls to.
    So that is why it is scrolling, but I don’t see a way to override this unless you add the ID #page_1 to the top of your page to break the scroll.

    Best regards,
    Mike

    #1204469

    Hey Mike!
    OK, thanks for the extra effort! Since this now works with the #top-addition in the link, I will probably leave it at that.
    1000 thanks for your help – I do not need further assistance for this!
    Best regards
    Grobi

    #1204471
    This reply has been marked as private.
    #1204709

    Hi,
    Glad we were able to help, we will close this now and take a look at your other thread. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Strange scroll behavior with iframe’ is closed to new replies.