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

Windows: Incorrect child view size when parent view has border

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2017 Sprint 15 SDK

      Description

      When parent View has border, child Views calculates its position and size based on parent border.

      var win = Ti.UI.createWindow(),
          view0 = Ti.UI.createView({
              top: 20,
              bottom: 20,
              left: 20,
              right: 20,
              borderColor: 'blue',
              borderWidth: 1,
              backgroundColor: 'white'
          }),
          view = Ti.UI.createView({
              top: 10,
              bottom: 10,
              left: 10,
              right: 10,
              borderColor: 'green',
              borderWidth: 10,
              backgroundColor: 'red'
          });
      view.add(view0);
       
      win.add(view);
      win.open();
      

      Actual

      Expected (iOS)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Gary Mathews
                Tester:
                Ewan Harris
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code