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

Android: Vertical Layout with top+bottom broken

    Details

      Description

      Summary:
      When setting both top AND bottom on an element inside a vertical layout view it won't add spacing between the elements but fill up the whole space.

      Versions:
      6.1.2.GA: works fine

      6.2.0.RC: broken layout when both properties are set

      Work-around:
      remove top OR bottom

      Code:

      var win = Ti.UI.createWindow({
      	backgroundColor: '#fff'
      });
       
      var scroller = Ti.UI.createScrollView({
          height:Ti.UI.FILL,
          width: Ti.UI.FILL,
          layout:"vertical"
      });
       
      for (var i=0;i<10;++i){
          var l = Ti.UI.createLabel({
              top:10,
              bottom:10,
              height:Ti.UI.SIZE,
              text: "Text",
              color:"#000"
          });
          scroller.add(l);
      }
       
      win.add(scroller);
      win.open();
      

        Attachments

        1. 612_ga.png
          612_ga.png
          49 kB
        2. 620_rc_one.png
          620_rc_one.png
          47 kB
        3. 620_rc.png
          620_rc.png
          32 kB
        4. CompositePinning-Bad.png
          CompositePinning-Bad.png
          53 kB
        5. CompositePinning-Good.png
          CompositePinning-Good.png
          54 kB
        6. CompositePinningTest.js
          3 kB
        7. VerticalPinning-Bad.png
          VerticalPinning-Bad.png
          91 kB
        8. VerticalPinning-Good.png
          VerticalPinning-Good.png
          180 kB
        9. VerticalPinningTest.js
          0.7 kB

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              michael Michael Gangolf
              Reviewer:
              Gary Mathews
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code