ExtJS 4月和一年的选择器 [英] ExtJS 4 month and year picker

查看:67
本文介绍了ExtJS 4月和一年的选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中添加月份和年份"选择器.因此,我发现了这个小提琴 https://fiddle.sencha.com/#fiddle/h5i 在stackoverflow帖子之一上.它使用Extjs 5.0,并且运行良好.但是,如果我们将其更改为4.2.1,则月份和年份的最后一行都消失,即六月,十二月的月份和2020年的年份都消失了.选择Extjs 5.0可以看到相同的结果.

I wanted to add a Month and Year picker on my app. So, I found this Fiddle https://fiddle.sencha.com/#fiddle/h5i on one of stackoverflow posts. It uses Extjs 5.0 and works fine. However, if we change it to 4.2.1 the last row on the Month and Year both disappear i.e June, Dec on Months and 2015, 2020 on years disappear. The same can be seen when you choose Extjs 5.0.

我应该解决/更改哪些内容以恢复这些行?我尝试增加.x-monthpicer-body等的高度/宽度...但是并没有太大帮助.

What should I be fixing/changing to get those rows back? I tried increasing height/width of .x-monthpicer-body etc ... but didn't help much.

推荐答案

对于Extjs 4 ive,它通过添加简单的CSS来解决了这个问题

For Extjs 4 ive fixed this by adding simple css

签出小提琴

我刚刚添加了以下CSS代码

i just added the following css code

.x-monthpicker {
    padding-bottom: 35px;
}

这篇关于ExtJS 4月和一年的选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆