ExtJS 4 month and year picker

强颜欢笑 提交于 2019-12-24 20:33:15

问题


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.

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.


回答1:


I fixed the issue 'temporarily' by changing the .x-monthpicker-body using px instead of %. Not sure if it will break during zoom in/outs.




回答2:


For Extjs 4 ive fixed this by adding simple css

check out this fiddle

i just added the following css code

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


来源:https://stackoverflow.com/questions/32281312/extjs-4-month-and-year-picker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!