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

Resizing updates #975

Merged
merged 3 commits into from
Sep 13, 2020
Merged

Resizing updates #975

merged 3 commits into from
Sep 13, 2020

Conversation

lucasnz
Copy link
Contributor

@lucasnz lucasnz commented Sep 12, 2020

This PR bases the row height on the image height, so it helps ensure there isn't too much white space...

@pliablepixels
Copy link
Member

Quick browser check - it doesn't fix the resizing issue. I still need to scroll to fix it. Is that the intent of this PR?

@lucasnz
Copy link
Contributor Author

lucasnz commented Sep 12, 2020

Yes, that was one of the goals (I thought I'd succeeded in solving the resizing issue). The other is to set the row heights based on the thumb height. This means rows can be different heights (if camera aspect ratios are different). So I've updated navTitle and scrollbynumber to handle the variation. The benefit of this, is less whitespace. I'll continue to work on the former, it has to be solvable!

@lucasnz
Copy link
Contributor Author

lucasnz commented Sep 12, 2020

Thinking about this, I was planning on making it scroll anyway. Otherwise when you rotate the phone you end up in a different place... Perhaps hold fire on merging until I've done that (kill two birds with one stone?)

@lucasnz
Copy link
Contributor Author

lucasnz commented Sep 13, 2020

Try it now. Resizing moves you to a different place in the list, and ideally I'd like to scroll you back to where you were - but aside from this looks to be working correctly now.

@pliablepixels
Copy link
Member

Are you done with all changes?

@pliablepixels
Copy link
Member

pliablepixels commented Sep 13, 2020

Overall looks good. The flex unset part is not working, but I've found a way to keep the time on the same line as intended. I'll merge this and PR to master. For some reason, I can't push changes to this PR (I may be doing it wrong)

@pliablepixels pliablepixels merged commit dd58e8f into ZoneMinder:master Sep 13, 2020
pliablepixels added a commit that referenced this pull request Sep 13, 2020
@lucasnz
Copy link
Contributor Author

lucasnz commented Sep 15, 2020

I think I've solved the issue whereby when you resize (or rotate the phone) it moves you to a different part of the event list. I've been running the code for a couple days. It scrolls you back to where you where you were before the resize... I'll probably raise another PR after you've looked at the minor large thumb PR I raised (if I push the commit it will add it to that open PR) - no particular rush :)

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

Successfully merging this pull request may close these issues.

2 participants