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

ViWrapper child components grow #78

Open
lzfrnd opened this issue Nov 5, 2019 · 1 comment
Open

ViWrapper child components grow #78

lzfrnd opened this issue Nov 5, 2019 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@lzfrnd
Copy link
Contributor

lzfrnd commented Nov 5, 2019

Describe the bug
Then using 2 components inside ViWrapper, they get a strange width

To Reproduce
Put a ViSelect and a ViButton inside ViWrapper

Expected behavior
I don't know exactly what should happen, but the components should not break like this. Perhaps the button height should not be altered. And both'em get the same width (50% / 50%)

Screenshots
vi_wrapper

@taciomedeiros taciomedeiros added the help wanted Extra attention is needed label Nov 7, 2019
@taciomedeiros
Copy link
Member

I think we need more examples of current behaviour before make some changes on it. 3-4 examples already should be good. Do you have some idea about it @luizzzdev ?

IMHO the expected behaviour should be the same of the start behaviour in flex; Positioning the objects with the default size at the start. The same behaviour that you explain can be seen when we use with a button.

DeepinScreenshot_select-area_20191107103439
DeepinScreenshot_select-area_20191107103447

I think that something like this should be possible!
<vi-wrapper class="ViComponent"> <vi-input :style="{ width: '20px' }"/> <vi-button> Home </vi-button> </vi-wrapper>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants