vitta-health / Vi-Ui

💙 A simple but consistent user interface made for Vue
https://viui.vitta.com.br/
MIT License
40 stars 14 forks source link

ViWrapper child components grow #78

Open lzfrnd opened 5 years ago

lzfrnd commented 5 years ago

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 commented 5 years ago

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! `

Home

`