ElemeFE / ElemeFE/element

[Bug Report] el-table column misalignment on safari

Open
#10,308 33 comments 6 reactions 0 assignees View on GitHub
component: table
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.2.0

### OS/Browsers version
Mac OXS / safari

**Detail**:
`iMac (Retina 4K, 21.5-inch, Late 2015)`
`Intel Iris Pro Graphics 6200 1536 MB`

### Vue version
2.5.10

### Reproduction Link
[https://jsfiddle.net/0wnt3tou/](https://jsfiddle.net/0wnt3tou/)

### Steps to reproduce
设置 css内容为
```css
@import url("//unpkg.com/element-ui/lib/theme-chalk/index.css");
#app .el-table .el-table__body td .cell {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
```

### What is Expected?
表头与表内容表内容列对齐,并且设置了 `show-overflow-tooltip` 的单元格超出的内容以省略号显示。

![a670df9b-29ff-4cca-9025-beae1150d136](https://user-images.githubusercontent.com/8147202/37760225-05b9985e-2df1-11e8-927f-a5625d350a72.png)
![Uploading A670DF9B-29FF-4cca-9025-BEAE1150D136.png…]()

### What is actually happening?
表头与表内容表内容列没有对齐,并且设置了 `show-overflow-tooltip` 的单元格当内容过长没有被隐藏。
![16_25_34__03_22_2018](https://user-images.githubusercontent.com/8147202/37759843-c8055f12-2def-11e8-849a-85fd52c508c9.jpg)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.