-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix(ui5-dialog): Texts are no longer blurred in Chromium-based browsers #2417
Conversation
Fixes: #2270 Bug in Chromium-based browsers (https://bugs.chromium.org/p/chromium/issues/detail?id=783388) causes elements with transform translate applied to be blurred due to values ending up resulting in fractional values. As a workaround, ui5-dialog is now centered using position fixed (with top and left).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- When draggable dialog is dragged, then resizing the window shouldn't recenter the dialog
- When resizable dialog is resized, also resizing the window shouldn't recenter the dialog
This is the behavior of the OpenUI5 Dialog https://openui5.hana.ondemand.com/entity/sap.m.Dialog/sample/sap.m.sample.Dialog
Waiting for a response from UX colleagues regarding this. |
} | ||
|
||
onExitDOM() { | ||
this._dragMouseMoveHandler = null; | ||
this._dragMouseUpHandler = null; | ||
ResizeHandler.deregister(this, this._screenResizeHandler); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the next line are repeated several times in the code - not a big deal but maybe move them to a separate function?
Fixes: #2270
Bug in Chromium-based browsers (https://bugs.chromium.org/p/chromium/issues/detail?id=783388)
causes elements with transform translate applied to be blurred
due to values ending up resulting in fractional values.
As a workaround, ui5-dialog is now centered using position fixed (with top and left).