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

Popover 'height' and 'width' cannot be automatically set

    Details

      Description

      Problem description

      It is not possible to set height/width to automatically size on the Popover contents.
      In 1.8.2 the 'auto' property was working fine as expected.
      With 2.0 and major, both using 'auto' or Ti.UI.SIZE, the height and weight values are set to zero.
      Also without specifying height and width values, those are set to zero.

      See attached sample code:

      var win = Ti.UI.createWindow({
      	backgroundColor:'gray'
      });
       
      var view = Ti.UI.createView({
      	right:20,
      	height:Ti.UI.SIZE,
      	width:100,
      	backgroundColor:'white',
      	borderColor:'black',
      });
      var label = Ti.UI.createLabel({
      	text:"Click for opening the Popover"
      });
      view.add(label);
       
      var contentView = Ti.UI.createView({
      	height:200,
      	width:150,
      	backgroundColor:'blue'
      });
      var popover = Ti.UI.iPad.createPopover({
          width: Ti.UI.SIZE,
          height: Ti.UI.SIZE,
          title: 'Title',
      });
      popover.add(contentView);
       
      win.addEventListener('click', function(){
      	popover.show({view:view});
      });
       
      win.add(view);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              srahim Sabil Rahim
              Reporter:
              fcasali Federico Casali
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration