Fix #8337

Fix [issue 8337](https://github.com/twitter/bootstrap/issues/8337).

Bug example [jsfiddle](http://jsfiddle.net/jholl/PHTdw/), The element jump up a little bit after collapsed.
Example [jsfiddle](http://jsfiddle.net/liuyl/jYkju/) after fixed.