Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu and header position/content scrolling #1

Open
cip opened this issue Feb 26, 2012 · 1 comment
Open

Menu and header position/content scrolling #1

cip opened this issue Feb 26, 2012 · 1 comment

Comments

@cip
Copy link
Owner

cip commented Feb 26, 2012

Wikipedia app has scrollable content and two fixed elements: header
at top, and menu at bottom of screen.

On cordova-qt (tested on Nokia N8) this does not work as expected:

With "goodscroll" implementation (Default in wikipedia 1.1)

Elements positioned correctly.
Scrolling only possible via scrollbar, no kinetic scrolling possible.

with iscroll

Used in wikipedia 1.1 for ios 4.2

Elements (still) positioned correctly
Scrolling not working at all in simulator,
incorrectly on device. (Behaving as if content connected with rubber
band to header)

with "badscroll"

Enabled via

chrome.addPlatformInitializer(function() {
//        $('html').removeClass('goodscroll').addClass('badscroll');
});

Elements scroll with content :(
Kinetic scrolling works

Qtwebkit appearantly not supporting css position:fixed.
Note that badscroll originally used for Android 2.2/2.3 only. As menu
currently used for Qt is from IOS version, badscroll not implemented for menu.
(That is position:fixed not set). Thus issue only visible with header, menu
scrolling of is expected as position:fixed not set.

@cip
Copy link
Owner Author

cip commented Feb 26, 2012

Proposal to fix this:

  1. Implement menu native, using qml toolbar. (With plugin as used in android version)
    Besides solving this issue, it should also look nicer.
  2. Header: Scrolling it may actually be anyway nicer.
    Both nokia browser and opera browser also scroll the address bar.
    On loading a new page it is shown again.
    Related https://bugzilla.wikimedia.org/show_bug.cgi?id=33881,
    and https://github.com/brion/Wikipedia/commits/absolute (https://bugzilla.wikimedia.org/show_bug.cgi?id=32917)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant