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

iscrollview inside of an external jqm panel #152

Closed
MaximSpirin opened this issue Nov 19, 2014 · 2 comments
Closed

iscrollview inside of an external jqm panel #152

MaximSpirin opened this issue Nov 19, 2014 · 2 comments

Comments

@MaximSpirin
Copy link

Hello,
did anybody implement iscrollview inside of a jqm panel(preferably external ie not nested in a page)?
As I see data-iscroll attribute doesnt force browser to create an instance of iscrollview and the document structure remains the same as I have defined i.e. it doesnt add all auxiliary items/classes like iscroll-wrapper..etc. As the panel is an external one I am creating that it manually as by calling:

$(panelElement).panel();
$(panelElement).trigger("create");

And then call $(panelElement).trigger("updateLayout"); after each DOM manipulation
jqm version is 1.4.3 and iscrollview is the last stable version.

Any advice will be highly appreciated.

Thanks,
Max

@frankie-loves-jesus
Copy link

From what I gather iScrollView is obsolete. Personally I replaced jQM's native panel with Snap.js (at least until jQM's native panel becomes scrollable in version 1.7):

Hope it helps.

@jtara
Copy link
Member

jtara commented Apr 21, 2015

I use it to scroll inside of popups. I've never tried a panel, and I don't think it would be easy, because the panel code itself assumes it is the height of the entire document. The panel code would need to be re-written.

I do something similar to a panel, but it does not open and close. It is just a scrollable sidebar that I use for some navigation (like the jQuery Mobile documentation "quick index"). I show the sidebar when the screen is landscape, and hide it when it is portrait. There I do use iscrollview to scroll within the navigation sidebar and the main content separately.

@jtara jtara closed this as completed Apr 21, 2015
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

3 participants