Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit ca20be4

Browse files
committed
fix(collapse): remove unnecessary inherit
- Remove unnecessary `inherit` property, which causes issues when custom widths are used, including percentage based widths Closes #6164 Fixes #6163
1 parent d9dd580 commit ca20be4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/collapse/collapse.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ angular.module('ui.bootstrap.collapse', [])
1818
horizontal = !!('horizontal' in attrs);
1919
if (horizontal) {
2020
css = {
21-
width: 'auto',
22-
height: 'inherit'
21+
width: 'auto'
2322
};
2423
cssTo = {width: '0'};
2524
} else {
2625
css = {
27-
width: 'inherit',
2826
height: 'auto'
2927
};
3028
cssTo = {height: '0'};

0 commit comments

Comments
 (0)