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

Redesign: improve room sub list sizing & persist sizes #2297

Merged
merged 10 commits into from
Nov 27, 2018

Conversation

bwindels
Copy link
Contributor

element-hq/element-web#7557

Resize handle should follow cursor now up to where all content is shown, more in line with expected behavior. Also supports 3 levels of screen real-estate entitlement (default aka proportional to content, explicitly sized, and show-all-content).

it's not used and we need to make some
api changes that don't work with it (resize will receive itemSize
which it doesn't really support)
up till now, resize received the offset of the resize handle
within the container upon resizing, and would then calculate
it's new size. For this first item in the container, this is
the same, and has therefor not been a problem yet.

Now however, we'll need to be able to programatically
(from localStorage) set the size of any roomsublist,
so need a method we can call with just the size and not an offset
within the container. The resizer calls the new method,
which subsequently calls resize.

This also has the nice side-effect that you can now easily
call super.resize after having transformed the new item size
@bwindels bwindels requested a review from a team November 26, 2018 15:51
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