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

Fix scrolling on participants list #896

Merged
merged 1 commit into from
May 11, 2018

Conversation

danxuliu
Copy link
Member

Fixes #851, which is a regression introduced in #745.

When using Firefox, the participants tab view requires its overflow to be hidden to limit its size to the size of its parents. Otherwise, the participants tab view grows to fit its children; if that happens then no scroll bar is shown for the participants list, as the participants list is tall enough to fit all its items (even if they are not visible because they are in the overflow area). In Chromium, on the other hand, the participants tab view size is always limited by its parents, no matter if the overflow is hidden or not.

In a similar way, once the overflow is hidden the bottom padding added to the participants list has to be added to its last item instead. Firefox only takes into account the bottom padding in the participants list when the list has not overflown the participants tab view; it needs to be added to the last item to be taken into account also when the participants list is taller than the participants tab view. Chromium, on the other hand, always takes into account the padding, no matter if it is added to the participants list or to its last item.

When using Firefox, the participants tab view requires its overflow to
be hidden to limit its size to the size of its parents. Otherwise, the
participants tab view grows to fit its children; if that happens then no
scroll bar is shown for the participants list, as the participants list
is tall enough to fit all its items (even if they are not visible
because they are in the overflow area). In Chromium, on the other hand,
the participants tab view size is always limited by its parents, no
matter if the overflow is hidden or not.

In a similar way, once the overflow is hidden the bottom padding added
to the participants list has to be added to its last item instead.
Firefox only takes into account the bottom padding in the participants
list when the list has not overflown the participants tab view; it needs
to be added to the last item to be taken into account also when the
participants list is taller than the participants tab view. Chromium, on
the other hand, always takes into account the padding, no matter if it
is added to the participants list or to its last item.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added this to the 4.0 (Nextcloud 14) milestone May 11, 2018
@nickvergessen nickvergessen merged commit 03c4e18 into master May 11, 2018
@nickvergessen nickvergessen deleted the fix-scrolling-on-participants-list branch May 11, 2018 08:36
@nickvergessen
Copy link
Member

please backport soon, thanks :)

@danxuliu
Copy link
Member Author

Soon enough? :-P

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

Successfully merging this pull request may close these issues.

2 participants