element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] unexpected horizontal scroll bar due to <el-row> and <el-col>

Open evagy opened this issue 8 years ago • 2 comments

Element UI version

2.0.8

OS/Browsers version

win7(32bit) / chrome62

Vue version

2.5.2

Reproduction Link

https://codepen.io/YuyangGong/pen/NXxYKe

Steps to reproduce

  1. use <el-row> and <el-col> (使用<el-row>和<el-col>组件)
  2. set gutter in <el-row> (在<el-row>中设置了gutter)
  3. induce the unexpected horizontal scroll bar, the extra horizontal distance is in direct proportion to the size of gutter (导致了预期以外的横向滚动条, 其额外的横向距离与我所设置的gutter成正比)
  4. you can preview this issue in the demo (可以在这个网站浏览问题的demo)

What is Expected?

extra horizontal scroll bar not appear when I set gutter to <el-row>. (当我使用<el-row>,并给其设置gutter的时候不再出现横向滚动条)

What is actually happening?

unexpected horizontal scroll bar appear indeed

evagy avatar Dec 18 '17 14:12 evagy

Translation of this issue:

Element UI version

2.0.8

OS/Browsers version

Win7 (32bit) / chrome62

Vue version

2.5.2

Reproduction Link

https://codepen.io/YuyangGong/pen/NXxYKe

Steps to reproduce

  1. use and (using and components)

  2. set gutter in (gutter set in ) 3., induce the unexpected horizontal scroll bar, the extra horizontal distance is, horizontal, and the lateral lateral distance is expected to be proportional to the set I have.

  3. you can preview this issue in the demo (demo that can be viewed on this site)

What is Expected?

Extra horizontal scroll bar not appear when I set gutter to . (when I use the word and set it up, there will be no lateral scroll bar).

What is actually happening?

Unexpected horizontal scroll bar appear indeed

element-bot avatar Dec 18 '17 14:12 element-bot

Duplicate of #8573

Leopoldthecoder avatar Feb 04 '18 07:02 Leopoldthecoder