Details

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

      Description

      {html}<div><p>Height is not being propagated properly to child components.</p>
      <p>In the following code, the 'body' height is read incorrectly
      when the createWindow has navBarHidden: true or fullscreen:false.
      It is corrected, though, if I uncomment the alert in the
      eventlistener</p>
      <p>(the code is a mock up of a window with header, footer and a
      pull up notification panel)</p>
      <p>app.js<br></p>
      <pre>
      <code>Titanium.UI.createWindow({ url: 'test.js' }).open();</code>
      </pre>
      <p>test.js:<br></p>
      <pre>
      <code>var win = Titanium.UI.currentWindow;

      var header = Titanium.UI.createView({
      top:0,
      height:50,
      backgroundColor:'blue'
      });
      win.add(header)

      var body = Titanium.UI.createView ({
      top:50,
      bottom:50,
      backgroundColor:'white'
      });
      win.add(body);

      var pullupPanel = Titanium.UI.createView({ backgroundColor:'green', height:100 });
      body.add(pullupPanel)

      var pullupPanelHeader =Titanium.UI.createView ({ backgroundColor:'red', top:0, height:30 })
      pullupPanel.add(pullupPanelHeader)

      var footer = Titanium.UI.createView ({
      bottom:0,
      height:50,
      backgroundColor:'blue'
      });
      win.add(footer);

      win.addEventListener('open', function () {

      //alert ("hi");

      pullupPanel.top=body.size.height-30;
      pullupPanel.height=body.size.height;
      })</code>
      </pre></div>{html}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                markpeace Mark Peace
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration