From fa802b893facfec58917587036fec46ccbea682b Mon Sep 17 00:00:00 2001 From: Simona <36978416+SimonaliaChen@users.noreply.github.com> Date: Thu, 30 May 2019 11:34:34 +0800 Subject: [PATCH] docs: fix the side effect by global el-scrollbar style (#15740) --- examples/pages/template/component.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/pages/template/component.tpl b/examples/pages/template/component.tpl index 580e4b46a..b3c0474db 100644 --- a/examples/pages/template/component.tpl +++ b/examples/pages/template/component.tpl @@ -3,7 +3,7 @@ height: calc(100% - 80px); margin-top: 80px; - .el-scrollbar__wrap { + > .el-scrollbar__wrap { overflow-x: auto; } } @@ -24,8 +24,9 @@ margin-top: 80px; transition: padding-top .3s; - .el-scrollbar__wrap { + > .el-scrollbar__wrap { height: 100%; + overflow-x: auto; } &.is-extended {