锚定面板内的按钮
我有一个面板锚定在表单的 top-left_BOTTOM 上。该面板底部有一个按钮,当我通过拉下表单的底部边缘来调整表单大小时,我想正确移动该按钮。但现在面板可以正确移动,但按钮却不能。我应该设置什么来做到这一点?谢谢
I have a panel anchored to top-left_BOTTOM of the form. there is a button at the bottom of this panel that I want to move correctly when I am resizing the form by pulling down the bottom edge of the form. but now the panel is moving correctly but the button does not. what should I set to do this? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
按钮的锚点是什么?它应该说“底部”而不是“顶部”。
该面板的大小调整正确,因为您将其附加到表单的顶部和底部。现在您必须仅将按钮附加到父级(面板)的底部(而不是顶部)。
What is the anchor of the button? It should say "bottom" but not "top".
The panel is resizing correctly because you attached it to the top and to the bottom of the form. Now you have to attach the button to the parent's (the panel's) bottom only (not top).
将按钮固定在右侧和底部
Anchor the button to the right and bottom