-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Side menu scroll feature locks after switching servers OR displaying liveview in landscape #337
Comments
After a bit more playing with this, those exceptions have nothing to do with the side menu. They are exceptions generated by the content drop down, ie authentication successful messages which is a different issue. The side bar menu not scrolling may be caused by this float in index.html which apparently breaks the scroll structure ? ( I know bugger all about about Ionic so could be talking total bs here, but that's what I've read )
By rotating the phone into landscape mode the scroll feature is restored as Ionic now knows the height again. Why it works in Android V6 ive no idea. Just got to test this theory out now. Instead of float use margin-left:auto and margin-right:auto Until I give it a try this is all a bit theoretical. |
does removing the complete |
No just the float, I've not tested it yet. Having trouble with my Android build. |
I tried disabling transitions, quiting zmN and restarting, scroll still locks up after server change (scroll unlocks if you rotate the phone and then works in portrait & landscape) same as before. I've not tried changing float yet, may need to email a couple of questions re building on Android. |
I've taken out the whole |
Okay, so if you are sure the float is causing the issue, it must be a quirk for the browser for that specific platform. I'm going to have to rely on you trying some other ways to fix it (display top right) as I can't replicate it. Thanks for investigating! |
@pliablepixels OK, I think I've fixed the code for both methods of reproducing the scroll lock bug as described above. The following changes were made .. and wrapped And that's with the existing span for the server info left in place including the float. I need to check it all works fine on Android 6 and the Linux desktop. If all good, do you want me to do a pull request on the forked copy of the master I have ? (first time doing this on Github so not quite sure of the procedure yet) |
@PartialVolume - thanks for investigating. Can we try this:
And
I'd like to see what is the minimal set that fixes that lock issue. |
@pliablepixels Just tried that on 5.1, doesn't work, menu locks. I'll work out what is the minimum set required is. I've a sneaky suspicion it might be the |
This appears to be the minimum that works. 95% leaves a small white band at the bottom of the menu. Not sure if the 95% is significant to the fix, discovered the fix here will try 98%/99% or 100% and see what happens. |
The key issue I think is why does this only occur when switching servers. What's the relation? If it really was a scroll issue, then it should occur all the time. So I'd be more inclined to see what is going on in the "switch server" code from the UI perspective that is causing this. The issue however is I can't replicate this. |
It doesn't only occur when switching servers, see method 2 in my description of how to reproduce the bug. Just viewing a liveview in landscape also triggers the bug. |
Okay and all of this also goes away if you take away the |
Yes |
Although I do like those little info labels, would be a shame if they were removed |
Agree - I'm not going to remove them. I'll experiment with some other ways |
Just checking, but have you a device running 5.1 ? |
Yes - the device I am using is a Moto E running 5.1 |
|
I'll try removing delegate handle next but finishing off the other fix first. The absolute minimum that fixes this is simply wrapping As height is now 100% there is no white band at the bottom of the side menu as with 95%. It's also not necessary to change Menus do not lock which ever method i use to trigger the bug (single server, liveview in landscape, or multi server switching). |
That looks good. Yes please see if removing delegate handle helps. Please do a PR as well once you conclude on this. Thanks! |
Starting with a fresh download of the shrinking header branch. Changed Changed Using both single server liveview in landscape & switching servers both cause scroll to lock up with this change. Just had a thought, can you try something for me ?. With your moto can you start zmN and hold it in landscape (do not turn it to portrait) check the menu scrolls, switch servers, keeping it in landscape click the three bars to bring in the side menu, check to see if it scrolls. Thanks I just found a variation of method #2 for locking the scroll using liveview starting in landscape mode. Start ZmNinja, holding the phone in landscape fashion. Check side menu, can no longer scroll. |
@PartialVolume - no lock for me in your modified case. I think now that you've brought it down to a minimal set of changes (which also looks logical to me), feel free to do a PR. I'll merge and test on my devices to make sure it doesn't cause any issues. |
@pliablepixels I've updated my local master, checked for your changes |
I am unfortunately going to have to revert this change. Its causing scrolling issues on iOS where the menu does not scroll enough for the last item to be visible. |
That's a shame, setting the percentage to 95% doesn't improve things ? On 12 Oct 2016 00:57, "Pliable Pixels" [email protected] wrote:
|
Not sure - I am trying to clean up/implement some other features - I'll get back to this after that. I think we are close to a compatible solution - just that I have some other high priority stuff to do for now. I'll put it back after that and investigate. |
@PartialVolume - can you please update and check if the new display resolves this issue - I've taken the float out |
@pliablepixels I'll check it out later this evening. |
Thanks. Also I just made a commit pliablepixels@62f8844 - let me know if that solves overlapping windows. I took a hammer to the problem. |
I thought the Montage was loading real fast & packed out correctly . I'll test the montage some more. Bad news re the menu. Always locking now as per the method I use to make this bug show. I took out the
|
Changed |
hmm, so then its not the float that was causing the issue, then |
Doesn't look like it. But on the earlier code taking out the span fixed it. Very odd. I'm assuming if I put the |
Former-commit-id: 97b443ad19d097bda21c077ec0b0355d76ed341d
Former-commit-id: a032aca2255526391552fffb9bd2e7c544f42b20
Former-commit-id: 97b443ad19d097bda21c077ec0b0355d76ed341d
Former-commit-id: a032aca2255526391552fffb9bd2e7c544f42b20
is this resolved / can we close? |
Hi,
Yes, I think you can probably close it, I tend to use a HTC M10 (Android 6)
so don't have the ability to test on earlier versions. Works fine on the M10
Regards
Nick
On 7 Feb 2017 10:37 a.m., "Pliable Pixels" <[email protected]> wrote:
is this resolved / can we close?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/pliablepixels/zmNinja/issues/337#issuecomment-277961249>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVD9EUM0dzKQq7GmhjSeyR50Vbx3BIQgks5raEl9gaJpZM4KF5BU>
.
|
Platform & OS Version
Android V5.1
The version of the app you are reporting:
1.2.24 and 1.2.25 (Android build 5.1 only, cannot reproduce on HTC M8 Android 6.0) (Linux desktop build does not show bug even if you resize window so the sidebar menu needs scroll) untested on IOS
Device details:
UMI Fair Android 5.1 (UMI Fair is a rooted device) (Cannot reproduce on HTC M8 Android 6.0)
What is the nature of your issue
Bug
Details
There are two different ways of reproducing this bug. Both methods only work with Android 5.1
Method 1
With this method you will need 2 or more servers set up on zmNinja and an Android device running 5.1
Start zmNinja, it will connect to the last server you used.
Switch to a different server.
Try to scroll the side menu to the bottom of the menu. You won't be able to, however the buttons you can see all work.
Exit zmNinja
Restart zmNinja
Auto connects to last used server.
Side menu scrollbar now works.
Method 2
To trigger the bug using this method you only need one server.
Start ZmNinja, holding the phone in portrait fashion.
Makesure the side menu is scrollable.
Click either montage or monitor and bring up a liveview.
Rotate the phone into landscape
Rotate the phone back to portrait
Exit liveview using the expanding buttons
Check side menu, can no longer scroll.
With side menu still showing rotate phone to landscape and back to portrait, scroll now works.
Method 3
This is similiar to method to but starts with phone being held in landscape
Start ZmNinja, holding the phone in landscape fashion.
Makesure the side menu is scrollable.
Click either montage or monitor and bring up a liveview.
Rotate the phone to portrait
Exit liveview using the expanding buttons
click the 3 bars to bring in the side menu
Check scroll, it's locked !
As mentioned above this only seems to happen on Android 5.1 on a UMI Fair and not on Android 6.0 (HTC M8) or on the Linux64 desktop version. On my UMI Fair Android 5.1 it is 100% reproducible.
The text was updated successfully, but these errors were encountered: