Uploaded image for project: 'Documentation'
  1. Documentation
  2. TIDOC-3355

iOS: Ti.UI.SIZE broken for WebViews

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 8.0.0
    • Fix Version/s: No Release
    • Component/s: APIDoc
    • Environment:

      Ti SDK 8.0.0.v20190311082612

    • Story Points:
      5
    • Sprint:
      2019 Sprint 10, 2019 Sprint 11, 2019 Sprint 12, 2019 Sprint 13, 2019 Sprint 14, 2019 Sprint 15, 2019 Sprint 16

      Description

      The webview control has regressed from 7.5.0.GA to 8.0.0 because it no longer supports Ti.UI.SIZE.

      Refer to the screenshot attachments - the one with the visible yellow webview component was taken on 7.5.0.GA and the one where the webview component is invisible is from 8.0.0. This test was run on an iPhone 6 simulator running iOS 12.1 however it has been replicated across multiple iOS builds.

      Here is the test code:

      var win = Ti.UI.createWindow({});
       
      var verticalView = Ti.UI.createView({layout: 'vertical', width: "100%", height: "100%"});
       
      verticalView.add(Ti.UI.createLabel({text: 'Label 1', top: 30, width: Ti.UI.SIZE, height: Ti.UI.SIZE}));
       
      var html = "<div style='font-family: Helvetica Neue; font-size:16px'><ul><li>Item 1</li><li>Item 2</li></ul></div>";
      verticalView.add(Ti.UI.createWebView({left: '14dp', right: '14dp', top: '7dp', height: Ti.UI.SIZE, html: html, backgroundColor: "yellow"}));
       
      verticalView.add(Ti.UI.createLabel({text: 'Label 2', top: 30, width: Ti.UI.SIZE, height: Ti.UI.SIZE}));
       
      win.add(verticalView);
       
      win.open();
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bimmel Brian Immel (Inactive)
                Reporter:
                cornflakesuperstar Jason Kotchoff
              • Watchers:
                13 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 Integration