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
Incorrect wrapping of XS blocks #10513
Comments
This looks like the docs, is that correct? Please indicate where exactly you took these screenshots. |
Also, browser and version? OS? Link to jsbin or jsfiddle if not in the docs? |
OS: Windows 7 juthilo, I have changed some classes on offitial site to check behavior. It is equal to placement this code to my site. |
For easier debugging, could you place the code you use on your site in a jsfiddle or jsbin, please? Also, Chrome for Windows' latest version is 29, are you not able to update the browser for some reason? |
JSFiddle: http://jsfiddle.net/b4b3j/1/ I am unable to update browser now, if it is needed, shall do it later. |
I can reproduce this only when the viewport's width is very small, so I'm not sure if there's anything we can do here. I'll leave this open for @mdo. |
We might need to add a "Required minimum viewport width" to the docs. |
I think many of mobile devices have width <= 330 px (the resolution from which the bug appears). So it can hardy be a feature. Example of not very old, Android 4.x mobile with 320 px resolution: http://en.wikipedia.org/wiki/Sony_Xperia_Go |
These docs and this SO entry suggest that 240x320 physical px is the de facto minimum Android screen size. (Although this neglects market share considerations, etc.) |
By virtue of the column gutter width (and confirmed by experimenting), 360px seems to be Bootstrap's current minimum width, below which the unwanted wrapping is observed. |
There are two reasons this happens:
A layout with two 6 columns works perfectly, as does 8 and 4. I'm inclined not to add anything to the docs that documents a required viewport width given this particular situation. Is there another situation in which this incorrect wrapping happens that might be more common? |
Coming back to this, closing as a won't fix—this example isn't in our docs and I really cannot imagine why this exact problem would be used. |
mdo, I am surprised you have closed the bug. |
I have an better idea for grid in v4, so wait until that. I think your problem can be fixed with using percents instead of pixels for padding, margins, and container size. |
See the screenshot: I thougt that these blocks must be in one row, but they are not. Why? XS layout must have 12-rows grid too.
The text was updated successfully, but these errors were encountered: