nodeclub icon indicating copy to clipboard operation
nodeclub copied to clipboard

未登录用户查看帖子 有的帖子 界面滚动到底部 评论展示不全

Open jiangli373 opened this issue 9 years ago • 5 comments

image

像这个图所示 界面滚动到底部 评论展示不全

帖子地址:https://cnodejs.org/topic/585f835e708f21aa5db0ecdb

浏览器chrome

操作系统 mac

jiangli373 avatar Dec 26 '16 06:12 jiangli373

一直有这个问题。。然后一直没有重现方式。。

alsotang avatar Dec 26 '16 06:12 alsotang

关联Issues: https://github.com/cnodejs/nodeclub/issues/880 https://github.com/cnodejs/nodeclub/issues/865

可能跟这个有关系: https://github.com/cnodejs/nodeclub/commit/8f52f66f6910d85b38294cd8b2ee8c990432ef4f

TakWolf avatar Dec 26 '16 06:12 TakWolf

image

貌似是因为 图片还没有加载完 然后算出来的高度不正确

jiangli373 avatar Dec 26 '16 07:12 jiangli373

image 可以把网络速度变慢

这个是图片没有加载出来的页面样子 显示是正常的 然后等图片出来以后 main的高度变了 但是footer的位置没有变

#main {padding-bottom: 60px;/等于footer的高度/}

或者通过js改变

$('#main').css({'padding-bottom':$('footer').height()})

参考这篇文章 http://www.w3cplus.com/css/css-sticky-foot-at-bottom-of-the-page

jiangli373 avatar Dec 26 '16 07:12 jiangli373

我这里还是没有重现。。。

我们的代码里面,在

$(window).resize 的时候会重新运行你截图中的那个 n 函数。。不过貌似图片从未加载到加载的时候不会触发这个方法

alsotang avatar Dec 27 '16 03:12 alsotang