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

DemoSplitview - iPhone Menu not Main div area and resizing screen #47

Open
PHANTOMIAS opened this issue Nov 15, 2012 · 3 comments
Open

Comments

@PHANTOMIAS
Copy link

I downloaded your project and used the DemoSplitview.html.
On iPad, I have the splitview with menu and main div area. On iPhone I see the main area, but I want to see the menu area instead. How can I achieve this?

Also if I check this demo in a desktop web browser with full screen size, I see the slit view. Everything fine. Resizing the web browser and make the dimensions smaller, at some point, it only shows the main area, but I want to display the menu area (I think it is the same "problem" iPhone <-> iPad, described above).

Resizing the screen again and make it bigger again (not reloading the page), the split view does not fit anymore to the big screen size. The width of the main and menu area are fixed. Reloading the page in any size, the splitview fits well again. So is there a possibility to "refresh" the page while resizing, so the split view will looks after any resizing of the web browser well?

@frequent
Copy link
Owner

the resizing will be fixed in the next version, which I I still need to commit. Regarding letting the menu go first, I started working on it, but it is pretty complicated, as there is a lot of code to adapt and I don't have a lot of time to spend on multiview at the moment.

@PHANTOMIAS
Copy link
Author

With the resizing, that would be great if you have the time to commit it. I tried it with $(window).resize(xxx) but without success.

And yes, I took a look inside the code, and I was not able to fix this with the menu and main area.

@frequent
Copy link
Owner

to resize you'd have to trigger panelHeight (which also triggers panelWidth) on resize. Look for the orientationchange listener and add resize there. The problem is both functions are really resource drainers and I firing way to often, slowing the application down. But they are needed because changing pages will also change the longest panel length, so after transitions/resize/orientationchange, the panel dimensions need to updated.

The menu/main (there is also mid) is hard because they are handled throughout the plugin and I would have to find a way to have the whole plugin running without main/menu/mid and instead use set/yield/yield_2 which are set depending on the user. That will take time... :-)

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

2 participants