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

Vertical layout is broken in popovers

    Details

      Description

      {html}<div><p>A customer reported that setting a view's layout to vertical is
      broken when the view is used in a popover. The following code shows
      the behavior. I tested this with 3.2 & 4 with latest from
      HEAD.</p>
      <p>var win = Titanium.UI.createWindow({backgroundColor: 'white'});<br></p>
      <p>function makeView(){<br></p>
      <pre>
      <code>var container = Ti.UI.createView({height: 200, width:280, layout: 'vertical', backgroundColor: 'green'}),
      agreeBtn = Ti.UI.createView({
      width: 280,
      height: 45,
      top: 10,
      backgroundColor: 'red'
      }),
      usefulBtn = Ti.UI.createView({
      width: 280,
      height: 45,
      top: 10,
      backgroundColor: 'blue'
      }),
      funnyBtn = Ti.UI.createView({ width: 280, height: 45, top: 10, backgroundColor: 'purple' }); container.add(agreeBtn); container.add(usefulBtn); container.add(funnyBtn); return container</code> </pre> <p>}</p>
      <p>var view1 = makeView(),<br></p>
      <pre>
      <code>view2 = makeView();</code>
      </pre>
      <p>win.add(view1);<br></p>
      <p>var openButton = Ti.UI.createButton({ bottom: 10, height: 40, width: 200, title:'open popover'});<br>
      openButton.addEventListener('click', function(){<br></p>
      <pre>
      <code>var popover = Ti.UI.iPad.createPopover({height:200,width:280});
      popover.add(view2);
      popover.show({view: openButton});</code>
      </pre>
      <p>}) win.add(openButton);<br></p>
      <p>win.open();</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              ctredway1 ctredway
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration