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
tabs-left and tabs-right showing below tabs #2538
Comments
The addition of "width: 100%" for .tab-content causes the side tabs to break. In my local copy i replaced "display: table; width: 100%" with "display: block;" for .tab-content to fix the issue for me. |
I confirm this bug, using 2.0.2. In file navs.less, line 267 -> 270, replace .tab-content {
display: table; // prevent content from running below tabs
width: 100%;
} by
or eventually if this causes an error with other tabs :
|
Same here. But when I try your fix, my content overlaps the tabs. http://bot.neersighted.com/plugins.php |
neersighted,looking at your code, you still have: .tab-content { in bootstrap.min.css. Change it so that its one of the two options that are listed above such as just "display: block;" without the width: 100%. That should correct your problem. The default 2.02 code is what is breaking your layout. |
Actually, I was overriding it with second stylesheet. I just rolled back a version until this is fixed. Sent from my iPad On Mar 14, 2012, at 4:41 PM, Chuck Shawreply@reply.github.com wrote:
|
Resolved in 2.0.3-wip via another branch: reset width to auto for left and right tabs. |
I tried the fix of using auto but there seems to be a change of behavior for a table contained within a tab. In 2.0.1 the table would expand to fill the width of the containing 'tabbable' div but now it is pulled left to just the width of the content of the table. Not sure if this should be an issue of its own but seemed related to this one |
This is causing tables in a tab to expand to the width of their content. I have a datagrid component that uses a table and has overflow: auto; to provide scrollbars. But when it's in a tab, it instead expands to the width of its content. If I change .tab-content to display: block; it works. (Firefox 11) |
In 2.0.2, .tab-content { display: table; width: 100%; } changing to width auto will fix it but I also found using display:inline; to work as well. I'm just overriding this currently with a custom style sheet. |
Yeah, in my local copy I modified .tab-content to look like this: .tab-content {
display: block;
} That set the behavior back to the way it was pre 2.0.2 and doesn't seem to break the bug fix that was the reason this code changed in the first place. |
When using tabs, in particular when using tabs-left and tabs-right the actual tab-content is showing below the tabs. See the linked screenshot from the twitter bootstrap site. I've replicated this in Windows 7 Firefox and Ubuntu 11.10 x64 Chrome and Firefox.
I confirmed locally in a project I'm working on that rolling back to 2.0.1 fixes the issue.
Link to photo:
http://dl.dropbox.com/u/29385842/Tab%20alighnment%20problem.png
The text was updated successfully, but these errors were encountered: