-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[pointer_interceptor] Shadow dom tweaks #364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,11 +22,8 @@ void _registerFactory({bool debug = false}) { | |
| final String viewType = _getViewType(debug: debug); | ||
| ui.platformViewRegistry.registerViewFactory(viewType, (int viewId) { | ||
| final html.Element htmlElement = html.DivElement() | ||
| ..style.top = '0' | ||
| ..style.right = '0' | ||
| ..style.bottom = '0' | ||
| ..style.left = '0' | ||
| ..style.position = 'relative'; | ||
| ..style.width = '100%' | ||
| ..style.height = '100%'; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this change fine for stable as well? (If not, you could always update the Flutter SDK requirement so Flutter 2.2 won't versions that have this change.)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, thanks for asking. I tested this both with This is backwards compatible, it's just that there's many ways to "cover a parent div" with CSS, but in the engine we only check "are style.width and style.height set (to any value?) else: warn user". This code is to disable that warning from our own packages. |
||
| if (debug) { | ||
| htmlElement.style.backgroundColor = 'rgba(255, 0, 0, .5)'; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.