Fixing bug dialog content does not grow fully to take up all the space provided by parent#4374
Fixing bug dialog content does not grow fully to take up all the space provided by parent#4374micahgodbolt merged 3 commits intomicrosoft:masterfrom serkan-inci:master
Conversation
|
The issue is parent container specifies display: flex but content doesn't specify any flex value. I was initially thinking to have And as @MLoughry mentioned, parent also specifies a constant width. |
|
If we made it |
|
@jordandrako Can you suggest what should be the right fix here since you initially added |
|
Dialog was already |
|
flex has better support for vertical centering, which you can see above that flex change. |
|
OK, thank you all for the responses. Can you suggest a better fix then or should we go with this one? |
|
Your fix is fine. I was just noting why we used flex in the first place. I feel the best solution is to use flex-grow. The intention is that the content takes up all of the extra space of the dialog. If someone changes the styles to block, the flex-grow will be meaningless (which is good). i.e. I'd rather have a combination of connected css values with a specific intention. TL:DR => lets go with flex-grow: 1 as that indicates proper intention. |
|
Thanks Micah, done. |
|
Can we get this merged if you're OK with the fix? We are about to move to a newer version and want this issue fixed. Thanks. |
Pull request checklist
$ npm run changeDescription of changes
Added width:100% to the dialog content.