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

Android: Nested views with Ti.UI.FILL in width/height is not visible

    Details

      Description

      Summary:

      Adding two views with width/height `Ti.UI.FILL` inside a view with fixed width/height only shows one view in 6.2.0.RC

      Expected

      Both images should be visible

      Workaround

      Set the inner views width/height to the outer view width/height.

      Code
      correct in 6.1.2.GA
      broken in 6.2.0.RC

      var win = Ti.UI.createWindow({
      	backgroundColor: '#fff'
      });
       
      var v1 = Ti.UI.createView({
      	width: 100,
      	height: 100,
      	borderWidth: 1,
      	borderColor: "#000"
      });
       
      var v3 = Ti.UI.createView({
      	width: Ti.UI.FILL,
      	height: Ti.UI.FILL,
      	backgroundImage: "assets/images/tab2.png"
      })
      var v2 = Ti.UI.createView({
      	width: Ti.UI.FILL,
      	height: Ti.UI.FILL,
      	backgroundImage: "assets/images/tab1.png"
      })
       
      v1.add(v3);
      v1.add(v2);
      win.add(v1);
      win.open();
      

      Code (Work-Around)
      correct in 6.2.0.RC
      correct in 6.1.2.GA

      var win = Ti.UI.createWindow({
      	backgroundColor: '#fff'
      });
       
      var v1 = Ti.UI.createView({
      	width: 100,
      	height: 100,
      	borderWidth: 1,
      	borderColor: "#000"
      });
       
      var v3 = Ti.UI.createView({
      	width: 100,
      	height: 100,
      	backgroundImage: "assets/images/tab2.png"
      })
      var v2 = Ti.UI.createView({
      	width: 100,
      	height: 100,
      	backgroundImage: "assets/images/tab1.png"
      })
       
      v1.add(v2);
      v1.add(v3);
      win.add(v1);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                michael Michael Gangolf
                Reviewer:
                Lokesh Choudhary
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code