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

Android & iOS Bug: layout on view causes unexpected results

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android

      Description

      {html}<div><p>If you apply layout:'horizontal' to a view, the label disappears
      on iOS and is truncated in Android.<br></p>
      <p>Test Code:</p>
      <pre>
      <code>
      var win = Ti.UI.createWindow({ backgroundColor: '#000' });

      var view = Ti.UI.createView({ //layout:'horizontal', left:0, right:0 });

      var label = Titanium.UI.createLabel({ text:'TEST', color:'#000000', top:2, right:15, height:26, left: 15, backgroundColor:'#fff' });

      view.add(label);

      win.add(view);

      win.open();</code>
      </pre>
      <p>remove comment for layout to test behavior.</p>
      <p>Related HD Ticket: <a href=
      "http://developer.appcelerator.com/helpdesk/view/74191">http://developer.appcelerator.com/helpdesk/view/74191</a></p></div>{html}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                blainhamon Blain Hamon
                Reporter:
                aleard Alan Leard
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration