New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix last column resize bug when no data #2775
Conversation
If a table has heigth and last column is auto width let width = '' // is_last_column, true && top_always_true && height_set_by_user, true if ( this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) { // width will be 0 + this.$parent.scrollBarWidth === this.$parent.scrollBarWidth // so last column will be 10~20px(the width of scrollBar) } there is an example with iview@2.8.0 [gist](https://gist.github.com/anonymous/e04e86c9e99d4d1e97bf327769acd345) [demo on jsbin](http://jsbin.com/soqogagiqu)
Can you elaborate on this bug? I didn't see any problems with my Chrome. |
|
iview@2.8.0 我也发现了这个问题,无数据、有height,columns 最后一个不定宽的情况下 会出现这个问题 |
My env: chrome v63.0.3239.132, windows and macOS also has this problem. |
@hxsf Mac Chrome 63, 你的在线示例在我这里运行一切正常。 |
|
@icarusion Maybe we can use browserling to test this. |
@icarusion 我好像知道为什么你的正常的了,再次看你的图片,我发现你的滚动条会自动隐藏,所以 width(是'') + '' 还是 '' 所以你的浏览器中显示是正常的。 你是否安装了某些 chrome 插件来隐藏滚动条? |
will check |
Thanks for your pr! |
If a table has heigth and last column is auto width
there is an example with iview@2.8.0