-
Notifications
You must be signed in to change notification settings - Fork 495
IE11 does not keep minimum content size of flex item #233
Comments
Oh, interesting, thanks! I never noticed that |
Actually, I think I may have spoken too soon. I don't think this is an occurrence of flexbug 1 because I don't think it's ignoring the content when shrinking. Instead, I think it's mis-calculating the height of the content -- it appears to do the calculation as if the text weren't wrapping, so it calculates a single-line height (which is different from 0, which you'd expect if it were flexbug 1). |
your opinion match current behavior. Three flexitem has been calculated with single line of text and these boxmodel are same(240 x 18.4 in my environment). |
I ran into this bug today when working with MS WebBrowser Control (which is based on IE11, if IE11 is installed on that machine). WorkaroundMy workaround is to set the CSS height property explicitly like so: The "fix" function can then be called on elements which are affected by the bug:
|
like 1.1.b, IE11 does not keep minimum content size of flex item if it has multiple lines of text which is created by text wrapping.
Bug
Codepen: https://codepen.io/sheile/pen/yozWOz
Left example hasn't problem. All brower keep minimum size of flex item if it is broken text by
<br>
tag..Right example has problem in IE11. Overlap text because shrink item smaller than content size.
Workaround
Codepen: https://codepen.io/sheile/pen/dzVEXL
Workaround is same as 1.1.b. Specify
flex-shrink: 0
on item to keep size of flex item.Checked browsers
The text was updated successfully, but these errors were encountered: