-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(floatinglabel): Estimate hidden scroll width #5448
Conversation
All 545 screenshot tests passed for commit 32f410d vs. |
All 545 screenshot tests passed for commit f400795 vs. |
All 545 screenshot tests passed for commit e933b88 vs. |
Codecov Report
@@ Coverage Diff @@
## master #5448 +/- ##
==========================================
+ Coverage 97.33% 97.33% +<.01%
==========================================
Files 164 164
Lines 6257 6269 +12
Branches 825 826 +1
==========================================
+ Hits 6090 6102 +12
Misses 167 167
Continue to review full report at Codecov.
|
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.
LGTM!
All 545 screenshot tests passed for commit 8372503 vs. |
All 545 screenshot tests passed for commit f9a5ab9 vs. |
All 545 screenshot tests passed for commit 5936803 vs. |
In some cases, the floating label needs to immediately know its width. This creates problems if the floating label is instantiated inside a
display: none;
parent element, like a hidden dialog. To resolve that, we provide a helper method that estimates the width of an element if hidden. If visible, it computes the true width.