2.0.4-wip: Narrow window does not always make .spanX full width
Narrowing the window has some odd behaviour for me trying the 2.0.4-wip branch:
As I narrow my browser, when it changes from 700px+ to < 700px I used to see all .spanX divs go to 100% width. Now this does not always happen (but does in some cases).
Trying to figure out if I am doing something wrong I checked out the example pages in 2.0.4-wip, the same issue occurs in the fluid example. I would expect the sidebar & links to all change to 100%, but they stay narrow.
Sorry I don't have a fix for you.
Ah, gotcha. This was the problem: https://github.com/twitter/bootstrap/commit/59ec4c7154984bd2847ff434fae7874f0b8e5265
I changed that back to block and instead scoped the inline-block to the .input-prepend and .input-append.
Thanks, Mark!
Hi Mark,
I've also noticed this issue, so I dug into it.
It looks like the fix you mention above 59ec4c71 got undone by 78790da0.
Was this intentional or just an oversight?
Update: the way it exists in 2.0.4 (block, not inline-block) seems to work for me as it applies to text inputs.
I'm sharing what I think is a related problem. The span12 input in following form looks fine (100% of parent) with the @media max-width: 979px. But it snaps to a smaller size (no longer 100%) when @media (max-width: 767px) kicks in.
<div class="container">
<div class="content">
...
<form class='well'>
<div class='row-fluid'>
<label>Please paste the error message:</label>
<input class='span12' type='text'>
<button class='btn btn-danger' type='submit'>Submit</button>
<button class='btn' type='submit'>Cancel</button>
</div>
</form>
..
The problem, best I can tell, is the width: auto rule, from line 124 in responsive-767px-max.less. After removing it, it looks great.
Did I fix this in the right place? (And is my code snippet reasonable?)
Thanks for this awesome framework.