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

Android: remove method for scrollview does not remove the view

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.3.0
    • Fix Version/s: Release 6.3.0
    • Component/s: Android
    • Environment:

      Description

      This is a regression. Not seen in SDK 6.2.2.GA.

      Steps to reproduce:

      1. Use the code below in your app.js:

      var win = Ti.UI.createWindow();
       
      var scrollView = Ti.UI.createScrollView({
          width: 400,
          height: 400,
          contentWidth: "auto",
          contentHeight: "auto",
          backgroundColor: 'red'
      });
       
      var view = Ti.UI.createView({
      	backgroundColor: 'green',
      	borderColor: 'gray',
      	borderWidth: 4,
          height: 100,
          width: 100
      });
       
      view.addEventListener('click', function(_event) {
          scrollView.remove(_event.source);
      });
       
      scrollView.add(view);
      win.add(scrollView);
      win.open();
      

      2. Build for android device/emulator.
      3. After app launch tap on the green view.

      Actual results:

      1. Clicking on the view removes just the background color & not the border.

      Expected results:

      1. Clicking on the view should remove the view completely.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              lchoudhary Lokesh Choudhary
              Reviewer:
              Gary Mathews
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration