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

Remove redundant scroll-margins and fix RoomTile wrongly scrolling #4952

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jul 12, 2020

Now that the sticky headers are rendered outside of the main div the scroll-margins create redundant space and are not needed.

image

Fixes element-hq/element-web#14413

It is quite an ugly solution but the alternative is much much more complex scrolling code instead of being able to rely on scrollIntoView or the RoomTile updating the DOM properties of its parent with a similarly ugly hack.

Tested on Firefox this produces no visual jumping/glitching/artifacting.

For element-hq/element-web#13635

@t3chguy t3chguy requested a review from a team July 12, 2020 07:51
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

code lgtm

@t3chguy t3chguy merged commit 1ce3ae0 into develop Jul 13, 2020
@t3chguy t3chguy deleted the t3chguy/room-list/14413 branch July 13, 2020 14:57
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.

New room list: small lists can cause weird cutoff artifacts when selecting rooms
3 participants