Skip to content

Commit

Permalink
fix(collapse): remove unnecessary inherit
Browse files Browse the repository at this point in the history
- Remove unnecessary `inherit` property, which causes issues when custom widths are used, including percentage based widths

Closes angular-ui#6164
Fixes angular-ui#6163
  • Loading branch information
wesleycho committed Aug 16, 2016
1 parent d9dd580 commit ca20be4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/collapse/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ angular.module('ui.bootstrap.collapse', [])
horizontal = !!('horizontal' in attrs);
if (horizontal) {
css = {
width: 'auto',
height: 'inherit'
width: 'auto'
};
cssTo = {width: '0'};
} else {
css = {
width: 'inherit',
height: 'auto'
};
cssTo = {height: '0'};
Expand Down

0 comments on commit ca20be4

Please sign in to comment.