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

Mobile Web: ScrollView does not resize on Portrait to Landscape.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: Release 5.3.1
    • Fix Version/s: None
    • Component/s: MobileWeb
    • Environment:

      iOS simulator and Android emulator mobile web browser.

      Description

      description

      In Mobile Web, the ScrollView does not resize properly when taking the device from portrait to landscape.

      Steps:

      1. Open Project

      2. Run using Mobile Web Preview in Browser

      3. With iOS Simulator, view the build in Safari

      4. In the UI, just a view will show in Portrait.

      5. Rotate the iOS Simulator Right.

      6. Problem appears, view is not re-positioned or centered.

      Test case

      var win = Ti.UI.createWindow({
      	backgroundColor : 'white',
      	title : 'ScrollView Demo'
      });
       
      var scrollView = Ti.UI.createScrollView({
      	showVerticalScrollIndicator : true,
      	showHorizontalScrollIndicator : true,
      	height : '80%',
      	width : '80%'
      });
      var view = Ti.UI.createView({
      	backgroundColor : '#336699',
      	borderRadius : 10,
      	top : 10,
      	height : 500,
      	width : Ti.UI.FILL
      });
       
      var view2 = Ti.UI.createView({
      	width : 100,
      	height : 100,
      	backgroundColor : 'red'
      });
       
      view.add(view2);
       
      scrollView.add(view);
      win.add(scrollView);
      win.open();
      
      

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                morahman Motiur Rahman
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration