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

iOS8: PDF inside WebView has black border

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 3.4.0, Release 3.5.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS 8
      SDK 3.4.0.v20140916181713
      Simulator iPad Retina

      Other environment:

      CLI version 3.4.0-beta,
      Titanium SDK version 3.4.0.v20140905152516
      Device iPod 5G, iOS 8.0

      Description

      Problem Description

      PDF inside webview has a black border.

      Steps to reproduce

      1. Create a new mobile project (classic titanium)
      2. Copy the PDF file attached here to Resources.
      3. Paste this code into app.ks:

      var win = Titanium.UI.createWindow({
          backgroundColor:"#fff"
      });
       
      var webview = Ti.UI.createWebView({
          url : '/pdf_003.pdf',
          scalesPageToFit : true,
          top : 10,
          left : 0,
          backgroundColor : 'transparent',
          disableBounce : true,
          willHandleTouches : true
      }); 
       
      win.add(webview);
      win.open();
      

      4. Run it in a device.

      Expected Results

      The PDF showing just fine.

      Actual Results

      I get a black border around the webview. Not visible under iOS7 with the same code

      Extra info

      http://stackoverflow.com/questions/25813551/rendering-pdf-in-uiwebview-ios-8-causes-a-black-border-around-pdf

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              michael Michael Gangolf
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code