Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18268

Titanium.UI.Picker - minDate / maxDate / value properties are not working

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: None
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 3.4.0, Release 3.4.1
    • Fix Version/s: None
    • Component/s: MobileWeb
    • Environment:

      Titanium Studio & SDK : 3.4.0.GA/3.4.1.GA
      Alloy 1.5.1
      Chrome Version 37.0.2062.124

    • Story Points:
      1
    • Sprint:
      2018 Sprint 07 SDK

      Description

      Problem Description

      Ti.UI.Picker min/max values are not working as expected (doesn't reflect in the running app).

      Steps to reproduce

      1. Create a new mobile project (Classic Titanium)
      2. Replace the content of app.js with this code:

      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow({
      	
      });
       
      var picker = Ti.UI.createPicker({
      	type : Ti.UI.PICKER_TYPE_DATE,
      	minDate : new Date(1900, 0, 1),
              maxDate : new Date(),
              value : new Date(),
      	top : 50
      });
       
      win.add(picker);
      win.open();
       
      picker.addEventListener('change', function(e) {
      	Ti.API.info("User selected date: " + e.value.toLocaleString());
      }); 
      

      3. Run this into a browser.

      Actual Results

      1. setting value property has no effect
      2. unwanted borders are added to the date picker.

      Expected results

      The setting value working as expected.

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              mano_mykingdom Manojkumar Murugesan
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19512
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code