bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Collapse wont auto height on IE

Open pimjansen opened this issue 14 years ago • 20 comments

The Collapse sets the height with an inline value on IE. This causes a problem while adding dynamic content with a variable height (in my case the dynatree).

Firefox / Chrome work correct.

pimjansen avatar Feb 21 '12 12:02 pimjansen

Is there anyone who can reproduce this?

pimjansen avatar Mar 22 '12 18:03 pimjansen

What steps are required to reproduce this?

rxbynerd avatar Mar 22 '12 18:03 rxbynerd

I have the Collapse plugin with a few blocks. My last block contains the dynatree (http://code.google.com/p/dynatree/).

When the dynatree expands the collapse wont adjust height because the height is set to the inline element. Firefox/Chrome work the way as expected though.

Hope you can reproduce it. I think its more that it wont adjust its height with dynamic JS in IE.

pimjansen avatar Mar 22 '12 20:03 pimjansen

Any progress on this?

pimjansen avatar Mar 27 '12 10:03 pimjansen

your best bet is going to be to provide a working link or jsfiddle so that we can see what your running into and toy with it.the inline part is interesting but in general I don't believe BS should be responsible for fixing every 3rd party issue at the expense of a huge codebase. there will always be certain setups that have issues, we almost need a user forum for this kind of stuff.

ctalkington avatar Mar 28 '12 01:03 ctalkington

Here is the JSFiddle example: http://jsfiddle.net/cRvmh/1/

As you can see it has nothing todo with the 3th party software like Dynatree but more like the Collapse itself. If you check the last tab you see a click link. In Bootstrap 2.0.1 the content div of that tab wont resize with the dynamic content.

In Bootstrap 2.0.2 it does the same but the inside content will be put on top of the tab content. As you can see there is more broken in the collapse in IE. Also the tabs wont open correctly.

pimjansen avatar Mar 28 '12 10:03 pimjansen

this this is a css issue, we'll have mark look at it, thanks!

fat avatar Apr 15 '12 05:04 fat

+1

Same Error seems to apply for the tabs

nexeck avatar Apr 18 '12 11:04 nexeck

Ok thnx. Made a quickfix in my app with JS so take your time :)

pimjansen avatar Apr 18 '12 13:04 pimjansen

This can be fixed by changing line 58 in bootstrap-collapse.js from

this.$element[dimension](this.$element[0][scroll])

to

$.support.transition && this.$element[dimension](this.$element[0][scroll])

philBrown avatar Apr 20 '12 04:04 philBrown

This should be resolved—it wasn't specifically an IE bug as we saw this behavior everywhere.

mdo avatar Apr 24 '12 09:04 mdo

This bug is still there?

pimjansen avatar Apr 24 '12 13:04 pimjansen

philBrown.....THANK YOU Brother!!! That was driving me nuts. Worked everywhere but IE til I applied your fix.

dansantner avatar Apr 27 '12 15:04 dansantner

Really Thanks That's the easiest solution from many others philBrown

mmhedison avatar May 16 '12 10:05 mmhedison

philBrown dude, shot! Was having this issue with Bootstrap v2.0.2 & IE9. Changing that line in the bootstrap js file sorted the problem out.

simonstewart avatar Jun 21 '12 12:06 simonstewart

I did notice with latest version this wasn't a problem anymore. FWIW.

dansantner avatar Jun 22 '12 02:06 dansantner

I am still having this issue w/ 2.0.4 , this jsfiddle demonstrates what I'm doing. In IE, adding elements to the uncollapsed div are obscured.

If I'm doing something wrong, I'm all ears.

moshen avatar Jun 26 '12 19:06 moshen

I just noticed that this was fixed only in 2.1.0 and not in 2.0.4. Good to know. Patching my local files works.

moshen avatar Jun 28 '12 20:06 moshen

2.1? Didn't know there was a version past 2.04.

dansantner avatar Jun 28 '12 22:06 dansantner

https://github.com/twitter/bootstrap/tree/2.1.0-wip , the next release?

moshen avatar Jun 29 '12 00:06 moshen