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

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 #6164
Fixes #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.