Uploaded image for project: 'Documentation'
  1. Documentation
  2. TIDOC-2121

iOS: Slider does not have height property, docs saying the oposite

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: Release 4.0.0
    • Component/s: APIDoc
    • Labels:
    • Environment:

      SDK 3.5.0
      IOS 8.1.2

    • Customer Priority:
      Immediate
    • Customer Labels:
    • Story Points:
      1
    • Sprint:
      2015 Sprint 04 Documentation

      Description

      Height property of slider is not working properly on IOS device.

      Reproduce:

      Just run the test case below.

      Problem:

      no matter how to change the value of slider.height, but it doesn't appear to be working.

      app.js

      var win = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
       
      var slider = Titanium.UI.createSlider({
          top: 50,
          min: 0,
          max: 100,
          width: '100%',
          height: 100,
          value: 50,
      });
          
      var label = Ti.UI.createLabel({
          text: slider.value,
          width: '100%',
          height: 'auto',
          top: 30,
          left: 0,
          textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
          });
       
      slider.addEventListener('change', function(e) {
          label.text = String.format("%3.1f", e.value);
      });
       
      win.add(slider);
      win.add(label);
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhatfield Benjamin Hatfield (Inactive)
                Reporter:
                sliang Shuo Liang
                Reviewer:
                Tim Statler
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration