From 9930a3263bd72b2d8dd8b2c0d4e570a44657d77b Mon Sep 17 00:00:00 2001 From: hugin Date: Mon, 26 Mar 2018 17:02:57 +0800 Subject: [PATCH] [new feature] Actionsheet: support maxHeight (#777) * [Improvement] Actionsheet: set container max-height && support scrolling when contents exceeds max height * [Improvement] Actionsheet: set scroll-y to auto --- packages/vant-css/src/actionsheet.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/vant-css/src/actionsheet.css b/packages/vant-css/src/actionsheet.css index 288ea5859..acb3fd704 100644 --- a/packages/vant-css/src/actionsheet.css +++ b/packages/vant-css/src/actionsheet.css @@ -8,6 +8,9 @@ color: $text-color; transition: .2s ease-out; background-color: $background-color; + max-height: 90%; + overflow-y: auto; + -webkit-overflow-scrolling: touch; &--withtitle { background-color: $white;