自动增加控件的高度以进行调整

编程入门 行业动态 更新时间:2024-10-11 17:22:55
本文介绍了自动增加控件的高度以进行调整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

看,我在显示像上面这样的数据。我想要做的是增加控件高度以删除滚动条。

See, i am displaying data like above. What i am trying to do is increase the controls height to remove scroll bar.

如果控件高度增加,那么它应该自动将下面的控件向下推。同样的条件也适用于以下控件。

If controls height increase then it should auto push the below control down. Same condition apply for the below control as well.

推荐答案

这不是用户对用户界面的期望。请记住,屏幕空间不是无限的;在某些时候,你将需要空间,并需要滚动条。您也可以为合理数量的行分配固定数量的空间,并将其留在那里。 That's not what users expect of a user interface. Remember, screen space is not infinite; at some point you will run of of space and will need the scroll bars. You might as well just allocate a fixed amount of space for a reasonable number of lines and leave it at that.

更多推荐

自动增加控件的高度以进行调整

本文发布于:2023-11-09 21:19:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573467.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   高度

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!