Skip to content

[WASM] Fix possible invalid scrolling - #2141

Merged
dr1rrb merged 4 commits into
masterfrom
dev/dr/GridViewScroll
Nov 21, 2019
Merged

dr1rrb merged 4 commits into
masterfrom
dev/dr/GridViewScroll

Conversation

@dr1rrb

@dr1rrb dr1rrb commented Nov 21, 2019

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): fixes #2111

Bugfix

A visibility collapsed shape may enable the scrolling

What is the current behavior?

SVG elements that are not arranged (like a Rectangle used by the "Selected" visual state of a GridViewItem) are implicitly measured to 300x150 by web browser (cf. comment in Uno.UI.css)

What is the new behavior?

While not arranged, SVG element are forced to be (0, 0).

PR Checklist

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

This was a "regression" introduced by #1726, but which was actually only revealing the real issue.

@gitpod-io

gitpod-io Bot commented Nov 21, 2019 •

Copy link
Copy Markdown

@github-actions github-actions Bot added area/automation Categorizes an issue or PR as relevant to project automation platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform labels Nov 21, 2019
@dr1rrb dr1rrb added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Nov 21, 2019
@dr1rrb dr1rrb self-assigned this Nov 21, 2019
Comment thread src/Uno.UI.Wasm/WasmCSS/Uno.UI.css Resolved
Co-Authored-By: Jérôme Laban <[email protected]>
@dr1rrb

dr1rrb commented Nov 21, 2019

Copy link
Copy Markdown
Member Author

/azp run

@dr1rrb
dr1rrb merged commit b02895b into master Nov 21, 2019
@dr1rrb
dr1rrb deleted the dev/dr/GridViewScroll branch November 21, 2019 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Wasm] non-virtualized lists are incorrectly allowing scrolling

2 participants