From ca20be46679b0c54adb1b2e33ade38ae6b2fb94e Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Tue, 16 Aug 2016 07:46:49 -0700 Subject: [PATCH] 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 --- src/collapse/collapse.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/collapse/collapse.js b/src/collapse/collapse.js index 5f3a84006f..6c512afbe3 100644 --- a/src/collapse/collapse.js +++ b/src/collapse/collapse.js @@ -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'};