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

MobileWeb: view - can not click a view that is over top of an imageView when there is not backgroundColor set on the view in IE9

    Details

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

      TiSDK v2.1.0.v20120619190257
      IE9, works fine on Safari and Chrome

      Description

      You can not click a view that is over top of an imageView when there is not backgroundColor set on the view in IE9

      Steps to repro:

      Step 1: run the code below in ie9
      Step 2: click on the image and notice that the singletap event is not fired unless you click to the side of the image on the view (if you run it in another browser like chrome you will be able to click directly on the image and the singletap event will fire).

      var win  = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
      win.open();
       
      var iv = Ti.UI.createImageView({
      	height: 300,
      	width: 300,
      	backgroundColor: '#666',
      	image: "http://outskirtsbattledome.wikispaces.com/file/view/Bender.jpg/125149777/Bender.jpg",
      	zIndex: 5
      });
       
      var view = Ti.UI.createView({
      	// Workaround
      	// backgroundColor: '#000',
      	// opacity: 0,
      	zIndex: 10
      });
      view.addEventListener('singletap', function(){
      	Ti.API.info('########### singletap');
      });
       
      win.add(iv);
      win.add(view);
      

      Workaround:

      Set the backgroundColor and set the view opacity to zero

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              jalter Jon Alter
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration