Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Md-tabs-content height not updated on v-show #1761

Closed
zevdg opened this issue May 18, 2018 · 2 comments
Closed

Md-tabs-content height not updated on v-show #1761

zevdg opened this issue May 18, 2018 · 2 comments
Labels

Comments

@zevdg
Copy link
Contributor

zevdg commented May 18, 2018

Steps to reproduce

put static content in a md-tab that is inside an element where v-show=false on page load
then set v-show to true

Which browser?

at least chrome
vue-material-1.0.0-beta-10.2

What is expected?

height of md-tabs-content should be large enough to show content

What is actually happening?

height of md-tabs-content is 0 and therefore content isn't shown

Reproduction Link

https://codesandbox.io/s/rl3j52n9pp (toggle switch to show content)

@Samuell1
Copy link
Member

Samuell1 commented May 18, 2018

I recommeded you to use v-if with that all works fine. Looks like v-show is messing up heights calculation.

@zevdg
Copy link
Contributor Author

zevdg commented May 18, 2018

yeah, I had already changed it to v-if in my own codebase. :-)

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

No branches or pull requests

2 participants