)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to style the content while rendering it along with the fixed elements?

Platform: jQuery |
Control: General |
Published Date: February 13, 2015 |
Last Revised Date: May 8, 2019
Tags: general, mobile

While rendering any content along with fixed elements such as header or toolbar, the content gets rendered as it is. Hence some parts of the contents get hidden behind the fixed elements. For example, when you use Header control and its position is fixed, then any content given under the header, a part of the content gets hidden behind the header.

You can overcome this issue by rendering scrollpanel for the content. By default, the scrollpanel applies the styles for the content to be aligned properly while rendering along with the fixed elements.

HTML

<div data-role="ejmheader" data-ej-title="Header"  id="header" ></div>
<div data-role="ejmscrollpanel" id="pagescroll" data-ej-target="deviceready"></div>
    <div id="deviceready">
        <div>
            <!--Content in here-->
            The Essential JavaScript Mobile Rotator widget is a container that holds many items. By swiping left and right you can see the next and previous items respectively. Each item in Rotator contains HTML template content.
        </div>
    </div>

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon