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

iOS: Implicit height calculation in vertical layouts are incorrect

    Details

      Description

      var win = Ti.UI.createWindow({
          backgroundColor:'white',
          layout:'vertical'
      })
      var view1 = Ti.UI.createView({
          top: 100,
          left:5,
          right: 5,
          bottom: 100,
          backgroundColor:'red'
      });
      win.add(view1);
      win.open();
       
      view1.addEventListener('click', function(){
      	Ti.API.info('----------------' + view1.size.height)
      })
      
      

      Expected Behavior:
      The height of the red view should be the height of the screen minus the top and bottom values.

      Actual:
      The height of the red view is 460

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                ayeung Allen Yeung
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration