This is a migrated thread and some comments may be shown as answers.

First and Last page have space above them... Why?

1 Answer 46 Views
ScrollView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 2
Scott asked on 05 Jul 2012, 07:39 PM
See sample web page here, why is there extra space at the top of the first and last page, yes, all the other pages are just fine....? Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 10 Jul 2012, 07:35 AM
Hi Scott,

Seems to have something to do with display: inline-block; and its positioning specifics (like the white spaces that can't be easily hidden). I couldn't find exactly what causes it, but you can remove it with some negative positioning, like this:
.km-scrollview > div > [data-role="page"]:first-child,
.km-scrollview > div > [data-role="page"]:last-child
{
    position: relative;
    top: -55px;
}


Kind regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ScrollView (Mobile)
Asked by
Scott
Top achievements
Rank 2
Answers by
Kamen Bundev
Telerik team
Share this question
or