From a7fc85f34d381b0f8c6dddf8105a48cb019816a6 Mon Sep 17 00:00:00 2001 From: Topher Fangio Date: Sat, 29 Aug 2015 14:01:35 -0500 Subject: [PATCH] fix(layout): Set the initial height to inherit the parent. In some cases, browsers have issues with rendering flex layouts when the height of an element is not set. This simply forces each layout element (which is the most common case when using flex) to the height it would normally be. Fixes #4022. References #3901. --- src/components/button/demoBasicUsage/style.css | 4 ---- src/core/services/layout/layout.scss | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/button/demoBasicUsage/style.css b/src/components/button/demoBasicUsage/style.css index f8deae3edf2..84b9fedb081 100644 --- a/src/components/button/demoBasicUsage/style.css +++ b/src/components/button/demoBasicUsage/style.css @@ -20,7 +20,3 @@ section .md-button { font-size: 14px; opacity: 0.54; } - -.launch { - padding-top:12px; -} diff --git a/src/core/services/layout/layout.scss b/src/core/services/layout/layout.scss index 63344ea129c..99a9b53e9ae 100644 --- a/src/core/services/layout/layout.scss +++ b/src/core/services/layout/layout.scss @@ -17,6 +17,7 @@ display: -moz-flex; display: -ms-flexbox; display: flex; + height: inherit; } .layout-column {