-----Original Message-----
From: Adam <adam....@gmail.com>
Sender: phonegap@googlegroups.com
Date: Tue, 28 Feb 2012 00:05:32 To: phonegap<phonegap@googlegroups.com>
Reply-To: phonegap@googlegroups.com
Subject: [PhoneGap] some issues with div scroll
I have a layout with three divs.like below:
<div id="header">header<div>
<div id="content">content</div>
<div id="footer">footer</div>
header always on top and footer always on bottom.
I set style overflow:auto to the content layer.
Although I have enough stuff in the content layer, the scroll cannot
work.
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap@googlegroups.com
To unsubscribe from this group, send email to
phonegap+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
in your css and see how that goes. Be sure to set your header and footer to position:fixed so they don't scroll right along with the content.
The problem you'll run into is that your app will bounce at the top and bottom of your content, which is a dead give-away that your app isn't native. The only way around that at the moment is to switch to iScroll or Scrollability, etc. Unfortunately their scrolling implementation doesn't feel 100% native, so it really depends on what you're willing to give up. I'm using iScroll-lite to keep scrolling speeds as close to native as possible, since there's no total solution for the bounce at the top and bottom of content using native scrolling.
Yes, unfortunately. An irksome problem, that I have no idea how to work around. *sigh*
Most unfortunate because I simply /can't/ use native scrolling. I've tried. Several times. (And it's hard, because my app is quite tied into iScroll at the moment, so I have to undo a lot of code to try...) I can get /very/ close, but never close enough. Some nutty bug always catches me in the end, and it's back to iScroll and the twitchiness with selects and ranges.
> Yes, unfortunately. An irksome problem, that I have no idea how to work
> around. *sigh*
> Most unfortunate because I simply /can't/ use native scrolling. I've tried.
> Several times. (And it's hard, because my app is quite tied into iScroll at
> the moment, so I have to undo a lot of code to try...) I can get /very/
> close, but never close enough. Some nutty bug always catches me in the end,
> and it's back to iScroll and the twitchiness with selects and ranges.
> Sigh.
> On Tuesday, February 28, 2012 3:16:58 PM UTC-6, jt wrote:
> > Both have problem of small "shift" (down and right) of one or two pixles
> > whenever a select list or input[type='range'] receive the focus, dammit.
> On Tuesday, February 28, 2012 3:16:58 PM UTC-6, jt wrote:
> > Both have problem of small "shift" (down and right) of one or two pixles
> > whenever a select list or input[type='range'] receive the focus, dammit.
> On Tuesday, February 28, 2012 3:16:58 PM UTC-6, jt wrote:
> > Both have problem of small "shift" (down and right) of one or two pixles
> > whenever a select list or input[type='range'] receive the focus, dammit.