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

iOS: Views not appearing on scrollableView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: iOS
    • Environment:

      Description

      Green, red, Blue view does not appear in 3.2 SDk. Hence it is a regression

      Steps To Reproduce:
      1. Run the app using code below.
      2. Scroll left and right in the colored area.
      4. Press 'OFF', and scroll left and right in the colored area (Paging control appears)

      Actual:
      Green, red, Blue view are not visible in 3.2 SDK while in SDK:3.1.3.GA Views appear properly

      Expected:
      Colored area does not appear

       
      var _window = Titanium.UI.createWindow({  
        backgroundColor:'#fff'
      });
      var views = [];
      		
      		function makeView(color) {
      			return Ti.UI.createView({
      				right: 0, left: 0, top: 0, bottom: 0,
      				backgroundColor: color
      			});
      		};
      		
      		views.push(makeView("red"));
      		views.push(makeView("green"));
      		views.push(makeView("blue"));
      		var scrollableView = Ti.UI.createScrollableView({
      			bottom: "50dp", left: "10dp", right: "10dp", top: "50dp",
      			views: views
      		});
      		_window.add(scrollableView);
      		
      		// Switch to toggle the showPagingControl property on the scrollable view.
      		var showControlSwitch = Ti.UI.createSwitch({
      			value: scrollableView.showPagingControl,
      			enabled:true,
      			title: "showPagingControl?",
      			bottom: "5dp", height: "40dp", left: "10dp", width: "150dp"
      		});
      		_window.add(showControlSwitch);
      		
      		// Displays current value of showPagingControl property.
      		// This should default to false.
      		var showControlProperty = Ti.UI.createLabel({
      			left: "160dp", text: "value: " + scrollableView.showPagingControl,
      			bottom: "5dp", height: "40dp", right: "5dp"
      		});
      		_window.add(showControlProperty);
      		
      		showControlSwitch.addEventListener('change', function (e) {
      		  scrollableView.showPagingControl = e.value;
      		  showControlProperty.text = 'value: ' + scrollableView.showPagingControl;
      		});
      		
      		 _window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              prastogi Pragya Rastogi
              Reviewer:
              Sabil Rahim
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code