Skip to content
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(floatinglabel): Estimate hidden scroll width #5448

Merged
merged 8 commits into from
Jan 10, 2020

Conversation

patrickrodee
Copy link
Contributor

@patrickrodee patrickrodee commented Jan 10, 2020

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.

@mdc-web-bot
Copy link
Collaborator

All 545 screenshot tests passed for commit 32f410d vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 545 screenshot tests passed for commit f400795 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 545 screenshot tests passed for commit e933b88 vs. master! 💯🎉

packages/mdc-dom/README.md Outdated Show resolved Hide resolved
packages/mdc-floating-label/component.ts Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Jan 10, 2020

Codecov Report

Merging #5448 into master will increase coverage by <.01%.
The diff coverage is 92.3%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
packages/mdc-floating-label/component.ts 100% <100%> (ø) ⬆️
packages/mdc-dom/ponyfill.ts 96% <90.9%> (-4%) ⬇️
packages/mdc-auto-init/index.ts 96% <0%> (+4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aab1020...5936803. Read the comment docs.

Copy link
Contributor

@asyncLiz asyncLiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mdc-web-bot
Copy link
Collaborator

All 545 screenshot tests passed for commit 8372503 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 545 screenshot tests passed for commit f9a5ab9 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 545 screenshot tests passed for commit 5936803 vs. master! 💯🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants