Skip to content
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

.tab-content overflow clips dropdowns #3661

Closed
yazdog8 opened this issue May 31, 2012 · 7 comments
Closed

.tab-content overflow clips dropdowns #3661

yazdog8 opened this issue May 31, 2012 · 7 comments
Labels

Comments

@yazdog8
Copy link

yazdog8 commented May 31, 2012

I'm running the latest version of bootstrap (2.0.3) and there appears to be a clipping problem when I place a dropdown into tabbed content. I see that this was resolved in version 2.0.2 (#2079) where the overflow:hidden was changed to display: table.

.tab-content {
display: table; // prevent content from running below tabs
width: 100%;
}

Now, in 2.0.3 the scrolling and cut is back, is it possible because the navs.less reads:

.tab-content {
overflow: auto; // prevent content from running below tabs
}

At any rate, this problem appears to be back. I rolled back the tab-content to display: table and that seems to work for now.

@grokys
Copy link

grokys commented Jun 11, 2012

Can reproduce what I think is the same problem here: http://jsfiddle.net/GGMWX/3/

@joelmoss
Copy link

I'm having the same issue here.

@srpouyet
Copy link

I'm also having this issue, using the workaround mentioned by @yazdog8 for the time being

@mdo
Copy link
Member

mdo commented Aug 17, 2012

You can use either inline-block, table, or table-cell to fix this, but be aware that it changes the width of the .tab-content from 100% to whatever the width of the content is. This is the reason for overflow auto and not something we can change at this time.

@mdo mdo closed this as completed Aug 17, 2012
@pcopley
Copy link

pcopley commented Jan 10, 2013

I have the following work-around for this. I am using Chosen drop-down boxes so the exact markup may vary slightly but this works for my purposes:

.tab-content {
    display: inline-block;
    overflow: visible;
    max-width: 600px; /* Specific to my needs, .tab-content is 
                         pushed below .tabs-left without this */
}

@marcusg
Copy link

marcusg commented Jun 27, 2013

I'm facing the same problem... is there a way to fix this without using a fixed width?

@pcopley
Copy link

pcopley commented Jun 27, 2013

You can try

.tab-content {
    display: table;
}

as is stated in this thread. I don't know of any work-arounds except that and my max-width solution above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants