Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下问题。每当我单击 ComboBox 时,垂直滚动都会转到窗口顶部。仅当子窗口太大而无法放入浏览器窗口时才会发生这种情况。在过去的四天里,我试图为此找到解决方案,但没有结果。请有人帮忙!:)
如果有人可以看这里是更能描述我的问题的视频:
http://www.youtube.com/watch?v=x2gfY_D9H8Y
解决方案是设置窗口的高度:
window.setHeight("someHeight")
它会起作用。