简体   繁体   English

Sencha ExtJS-显示组合选择器始终位于控件顶部

[英]Sencha ExtJS - Display combo picker always on top of the control

So I have this specific combo that I need to display its picker always on top (just as it behaves when it is too near to the bottom of the page). 因此,我有一个特定的组合,需要将其选择器始终显示在顶部(就像它在离页面底部太近时的行为一样)。 As shown here: 如此处所示:

在此处输入图片说明

I tried with the pickerAlign config but I wasn't able to put it on top of my control. 我尝试了pickerAlign配置,但无法将其置于控件的顶部。 Thanks! 谢谢!

Found the answer, this will do: 找到答案,这样做:

pickerAlign : 'b-t'

Anyway, it displays the same amount of items it would as if there was the same space on top of it that the amount beneath it. 无论如何,它显示的项目数量与其顶部和下方的空间相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM