You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the page is loaded, feel free to resize the browser or open the console.
What is expected?
Two divs remain intact
What is actually happening?
The green div will coincide with the red div. If the scroll event is triggered, it can be restored. However, if the browser is reduced to full screen and the page is less than one screen, resulting in no scroll wheel, it can no longer be restored.
Environment
Info
ng-zorro-antd
7.0.1
Browser
Chrome version 72.0.3626.121 (official version) (64-bit)
This problem occurs after the #2818 commit, since the syncPlaceholderStyle only recalculates the width of the placeholder after the resize is triggered.
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-rkjxji
Steps to reproduce
页面加载完成后随意的resize浏览器或者打开console
What is expected?
两个div保持原状
What is actually happening?
绿色div会和红色div重合,如果触发scroll事件的话可以还原,但是如果正好缩小浏览器再全屏以后导致页面不足一屏,导致没有滚轮,就再也无法还原
此问题出现在#2818 提交之后,由于触发resize后syncPlaceholderStyle只重新计算了placeholder的宽度导致
The text was updated successfully, but these errors were encountered: