UIWebview - tbody scroll - Simple?

Discussion in 'iOS Programming' started by binjaja, May 21, 2010.

  1. binjaja macrumors newbie

    Joined:
    Nov 13, 2008
    #1
    I have a very simple html file that has a scrollable table:

    HTML:
    <html>
    <head>
    </head>
    <body>
    <table>
        <thead>
            <tr><th>This is the header and doesn't scroll</th></tr>
        </thead>
        <tbody style="height:100px; overflow:auto;display:block;">
            <tr><td>content that scrolls</td></tr>
            <tr><td>content that scrolls</td></tr>
            <tr><td>content that scrolls</td></tr>
            <tr><td>content that scrolls</td></tr>
            <tr><td>content that scrolls</td></tr>
            <tr><td>content that scrolls</td></tr>
            <tr><td>content that scrolls</td></tr>
        </tbody>
    </table>
    </body>
    </html>

    In Mozilla and Safari you see scrollbar next to the table.
    However, when I look at the same html using UIWebview there are no scrollbars!

    Is there something that must be set in UIWebview to see them?

    thanks!
     
  2. vocaro macrumors regular

    Joined:
    Mar 5, 2004
    #2
    In a UIWebView, there are no scrollbars until you start swiping. Or do you mean they don't show up even then?
     

Share This Page