Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Redesign: left panel fixes #2364

Merged

Conversation

bwindels
Copy link
Contributor

check overflow on mount
restore size on query change (in case a sublist appeared)
check overflow when updating rooms

avoid duplicating for restoring size and checking overflow
Last friday a child <div> was added inside the ResizeHandle component,
which made the parentElement/classList checks fail on the event.target
here. This would only fail (and select all the text) when dragging exactly on
the grey line (the div), not the transparent margin around it.

use closest to make sure we have the root element of the handle.
the overflow/underflow events are not always reliable in nooverlay
browsers (FF), so forward the checkOverflow call we need anyway
for the scroll indicator gradients to see if we need to do the
margin trick for the on-hover scrollbar we use in nooverlay browsers.

this fixes on hover jumping in a subroomlist
@bwindels bwindels requested a review from a team December 18, 2018 13:45
@jryans jryans self-assigned this Dec 18, 2018
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me! 😁

src/components/views/rooms/RoomList.js Outdated Show resolved Hide resolved
src/components/structures/AutoHideScrollbar.js Outdated Show resolved Hide resolved
@bwindels bwindels merged commit acba36c into experimental Dec 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants