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

Hide scrollbar if content height is smaller than scroll node height #7220

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Nov 29, 2021

Fixes element-hq/element-web#19580

The ScrollPanel has excessive height on purpose as described on https://github.com/matrix-org/matrix-react-sdk/blob/develop/docs/scrolling.md
This pull request keeps that behaviour but hides the scrollbar when the total content height is smaller than the scroll node height


This PR currently has no changelog labels, so will not be included in changelogs.

Add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is plus X-Breaking-Change if it's a breaking change.

Preview: https://61a4eedbf1d07021631c52e2--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@germain-gg germain-gg requested a review from a team as a code owner November 29, 2021 15:12
@germain-gg germain-gg merged commit 065b65a into develop Nov 29, 2021
@germain-gg germain-gg deleted the gsouquet/scroll-panel-19580 branch November 29, 2021 17:03
Palid pushed a commit that referenced this pull request Nov 30, 2021
…om-alias

* origin/develop: (118 commits)
  Allow filtering room list during treeview navigation (#7219)
  Improve room list message previews (#7224)
  Fix EmojiPicker lazy loaded rendering bug (#7225)
  Prevent default avatar in UserInfo having pointer cursor (#7218)
  Hide scrollbar if content height is smaller than scroll node height (#7220)
  Add option to disable grouping in TimelinePanel (#7221)
  Prevent duplicate avatars in Event List Summaries (#7222)
  Add right panel chat timeline (#7112)
  Task/colors 12 (reorganize theme files again) (#7212)
  Fix size of portrait images with the SIZE_NORMAL setting. (#7188)
  Task/colors 11 (#7211)
  Respect the home page as a context for the Home space (#7216)
  Fix RoomUpgradeWarningBar exploding (#7214)
  Hide server options hint when disable_custom_urls is true (#7215)
  Polish threads misalignments and UI diversion (#7209)
  Improve right panel resize handle usability (#7204)
  Fix multiline paragraph rendering as single line (#7210)
  Fix Manage Restricted Join Rule Dialog for Spaces (#7208)
  Spaces quick settings (#7196)
  re-enable Spaces e2e tests (#7207)
  ...
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.

Unnecessary vertical top padding in thread view
2 participants