webbrowser in split-view (ipad) not scrolling properly

Discussion in 'iOS Programming' started by Danneman101, Aug 12, 2010.

  1. macrumors 6502

    Joined:
    Aug 14, 2008
    #1
    Ive got a uiwebview in the detailview of a split-view ipad app, which loads a local html-file.

    Problem is, the darn thing wont scroll the html-file properly. It's like there was a rubberband attached to the top, actively pulling the page up again when reaching the bottom.

    This is the header of my html-files:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
        <title>GALLERY</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
    	<meta name="viewport" content="width=device-width, minimum-scale=0.1, maximum-scale=1.6">
        <meta name="apple-mobile-web-app-capable" content="YES">
        <link rel="stylesheet" href="main.css">
    </head>
    <body>
    
    .. do stuff
    
    </body>
    </html>
    
    Pretty standard, and works fine on iphone with the exception that "minimum-scale=0.1" is then set to "1.0".

    My current solution is to add a lot of "<br/>" to the end of each html-file, but that's just ugly.

    Any ideas?
     
  2. thread starter macrumors 6502

    Joined:
    Aug 14, 2008
    #2
    Weird, Ive been googling my ass off for a solution, but I havent even found one single report of the same issue by a developer.

    Perhaps I should submit a bug-report?
     
  3. macrumors 6502

    seepel

    Joined:
    Dec 22, 2009
    #3
    I've been putting web views in my detail views just fine. Are you sure that your setting the web view itself correctly? Maybe it is getting a strange frame, or its scroll view is wonky?
     

Share This Page