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

Android: Views inside horizontal layout are clipped to the top

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: None
    • Resolution: Needs more info
    • Affects Version/s: Release 8.0.1, Release 7.5.2, Release 8.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      0
    • Sprint:
      2019 Sprint 11

      Description

      Subviews inside a horizontal parent view are clipping to the top on Android. On iOS, they are centered on the y-axis like other views are as well. This is a parity issue.

      Example:

      var win = Ti.UI.createWindow({ backgroundColor: 'white' });
       
      var view = Ti.UI.createView({ layout: 'horizontal', height: 50, backgroundColor: 'gray' });
      view.add(Ti.UI.createView({ left: 10, width: 40, right: 10, backgroundColor: '#ff0', height: 20 }));
      view.add(Ti.UI.createView({ left: 0, width: Ti.UI.FILL, right: 10, backgroundColor: '#f00', height: 20 }));
       
      win.add(view);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code