This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 1 year, 7 months ago.

Scroll to top and resizing page content


  • XanaduDev
    Participant

    Posts: 19
    Member Reply #7320

    Hi,

    We’re using metronic v4.5.6 admin_1 layout.

    We are loading ajax content in the page but instead of using this code


    <div class="page-content" >
    <div class="page-content-body" id="metcontent">
    </div>
    </div>

    we used this:


    <div class="page-content" >
    <iframe id="metcontent2" name="metcontent2" width="100%" frameborder="0" scrolling="no" src="???">
    </iframe>
    </div>

    1. How do I scroll to top of the page content (in this case the iframe) every time the content is loaded?
    2. How to resize the iframe based on the page content?

    Thank you.

    Sean
    Sean
    Keymaster

    Posts: 4226
    Support Staff Reply #7331

    Hi,

    Could you please refer to this discussion where this was resolved:
    http://keenthemes.com/forums/topic/iframe-sized-incoreectly/

    Thanks.

You must be logged in to reply to this topic.