From e8c2e7ce72ca81dfbe9fae53e7b750889ea86ee8 Mon Sep 17 00:00:00 2001 From: Sepehr Mohammadi <22997685+scharepmc2hr@users.noreply.github.com> Date: Thu, 20 Sep 2018 19:18:13 +0430 Subject: [PATCH] fix firefox can't set height smaller than content on flex item (#12295) https://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox/28639686#28639686 --- components/layout/style/index.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/layout/style/index.less b/components/layout/style/index.less index 73d27d9e6a..2bfa089a52 100644 --- a/components/layout/style/index.less +++ b/components/layout/style/index.less @@ -8,6 +8,8 @@ flex-direction: column; flex: auto; background: @layout-body-background; + /* fix firefox can't set height smaller than content on flex item */ + min-height: 0; &, * { @@ -43,6 +45,8 @@ &-content { flex: auto; + /* fix firefox can't set height smaller than content on flex item */ + min-height: 0; } &-sider {