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

Window width and height not respected on Android

    Details

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

      Description

      When creating a modal window, with width and height specified, a full screen window is produced. This use case demonstrates the
      problem:

      app.js

      var winView1 = Ti.UI.createWindow({
          backgroundColor:'#b1b1bd',
      //  borderRadius:5,
          url:"view1.js",
          modal: true,
      //  modal:false,
          title: "View1",
          width: 280,
          height: 300
      });
      winView1.open();</code>
      

      view1.js

      var win = Ti.UI.currentWindow;
      var viewView1 = Ti.UI.createView({
          backgroundColor: '#ffb1bd',
          borderRadius:10,
          top:10,
          width:280,
          height:280
      });
      win.add(viewView1);
      

      Furthermore, if borderRadius is used, an exception is produced.

      I'll raise that in another ticket, but the code above also demonstrates this if the createWindow borderRadius property is
      uncommented above.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                pdowsett Paul Dowsett
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration