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

Android: View:Pinching in to a large size makes view to disappear

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 2.1.0, Release 3.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Description

      Feature not supported in 2.0.2.

      Steps to reproduce:
      1) Use the code below

      var win = Titanium.UI.createWindow();
      win.backgroundColor = '#fff';
      		 
      		var view = Ti.UI.createView({
      		    height: 250,
      		    width: 250,
      		    backgroundColor: '#a00'
      		});
      		 
      		view.addEventListener('pinch', function(e) {
      		    view.height = baseHeight * e.scale;
      		    view.width = baseWidth * e.scale;
      		});
      		
      		view.addEventListener('touchstart', function(e) { 
      		    baseHeight = view.height;
      		    baseWidth = view.width;
      		});
      		 
      win.add(view);
      win.open();
      

      2) Run the app
      3) Keep on pinching to zoom in the displayed red view.

      Expected result:
      3) After step 3, the view should get bigger in size and stop at some particular maximum size.

      Actual result:
      3) After step 3, the view continues to get bigger in size but disappears completely once it reaches a certain high value(9999999*9999999).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sbhadauria Shyam Bhadauria
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code