{"action":"created","issue":{"url":"https://api.github.com/repos/BowlerHatLLC/feathers/issues/1445","repository_url":"https://api.github.com/repos/BowlerHatLLC/feathers","labels_url":"https://api.github.com/repos/BowlerHatLLC/feathers/issues/1445/labels{/name}","comments_url":"https://api.github.com/repos/BowlerHatLLC/feathers/issues/1445/comments","events_url":"https://api.github.com/repos/BowlerHatLLC/feathers/issues/1445/events","html_url":"https://github.com/BowlerHatLLC/feathers/issues/1445","id":173273167,"number":1445,"title":"DateTimeSpinner.scrollToDate  - a small issue ","user":{"login":"LicVit","id":8362413,"avatar_url":"https://avatars.githubusercontent.com/u/8362413?v=3","gravatar_id":"","url":"https://api.github.com/users/LicVit","html_url":"https://github.com/LicVit","followers_url":"https://api.github.com/users/LicVit/followers","following_url":"https://api.github.com/users/LicVit/following{/other_user}","gists_url":"https://api.github.com/users/LicVit/gists{/gist_id}","starred_url":"https://api.github.com/users/LicVit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LicVit/subscriptions","organizations_url":"https://api.github.com/users/LicVit/orgs","repos_url":"https://api.github.com/users/LicVit/repos","events_url":"https://api.github.com/users/LicVit/events{/privacy}","received_events_url":"https://api.github.com/users/LicVit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-25T18:12:26Z","updated_at":"2016-09-20T21:25:11Z","closed_at":"2016-09-20T21:25:11Z","body":"Way to reproduce:\r\n\r\n\r\n**// 1) Create DateTimeSpinner instance**\r\n\r\nvar _dateSpinner:DateTimeSpinner = new DateTimeSpinner()\r\n_dateSpinner.editingMode = DateTimeMode.DATE\r\nthis.addChild(_dateSpinner);\r\n\r\n**// 2) Scroll to some random date with animationDuration == 0**\r\n\r\n_dateSpinner.scrollToDate(new Date(2111,11,31), 0)\r\n\r\n**// 3) Read \"value\" property after ---> it will return the current date (but the component will display the date properly)**\r\n\r\nStarling.juggler.delayCall(function(e:Event = null):void{\r\ntrace(\"DateTimeSpinner :\", _dateSpinner.value);\r\n},2)\r\n\r\n\r\np.s. with _dateSpinner.value = new Date(2111,11,31) works properly\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/BowlerHatLLC/feathers/issues/comments/248439254","html_url":"https://github.com/BowlerHatLLC/feathers/issues/1445#issuecomment-248439254","issue_url":"https://api.github.com/repos/BowlerHatLLC/feathers/issues/1445","id":248439254,"user":{"login":"joshtynjala","id":141885,"avatar_url":"https://avatars.githubusercontent.com/u/141885?v=3","gravatar_id":"","url":"https://api.github.com/users/joshtynjala","html_url":"https://github.com/joshtynjala","followers_url":"https://api.github.com/users/joshtynjala/followers","following_url":"https://api.github.com/users/joshtynjala/following{/other_user}","gists_url":"https://api.github.com/users/joshtynjala/gists{/gist_id}","starred_url":"https://api.github.com/users/joshtynjala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshtynjala/subscriptions","organizations_url":"https://api.github.com/users/joshtynjala/orgs","repos_url":"https://api.github.com/users/joshtynjala/repos","events_url":"https://api.github.com/users/joshtynjala/events{/privacy}","received_events_url":"https://api.github.com/users/joshtynjala/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T21:25:11Z","updated_at":"2016-09-20T21:25:11Z","body":"Sorry for the delayed response. I've been busy with some things related to styling recently.\r\n\r\nThis is actually by design. scrollToDate() is strictly meant for animation, and even with a duration of 0, it won't change the scroll position until the next time that the DateTimeSpinner validates. If you call validate() manually, the correct date should be reflected.\r\n\r\n``` actionscript\r\n_dateSpinner.scrollToDate(new Date(2111,11,31), 0)\r\n_dateSpinner.validate();\r\n```\r\n\r\nI'll make a note of that in the API reference, if it isn't there already."}}
{"actor":{"display_login":"joshtynjala"}}