Flex Mobile 4.6: DateSpinner dateAndTime jumping from Jan 31st to March 1st

谁说我不能喝 提交于 2019-12-12 02:47:43

问题


I am working on a Flex 4.6 mobile project, encountering the following behavior from a DateSpinner set as displayMode 'dateAndTime'. When running the app and following these steps (as experiment I have set up a mobile app containing only one HomeView and only one object - a DateSpinner):

  1. set the date in DateSpinner to January 30 or 31 (using mouse or touch)
  2. click (mouse or touch) on February 1 (visible one or two rows below on the DateSpinner)

The Datespinner does spin forward but does not stop at February 1: it jumps to March 1. The same behavior can be observed with March 31 - mouse click on April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping to July 1, and so on.

I suspect this behavior is related to the fact that the next month has less days than the prior month (30 instead of 31, or 29 in the case of February 2012), but it is not the behavior that I would like to see when following these two steps. Does anyone know a work around?

When the DateSpinner is set with displayMode as 'date' all is well, but then I would need a second DateSpinner for setting time, which eats up more screen space.

来源:https://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st

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