Welcome to iPadForums.net Guest - Click Here to Register

Ipad Safari -webkit-transform:scaleY(1.25) pushes content off-page

This is a discussion on Ipad Safari -webkit-transform:scaleY(1.25) pushes content off-page within the iPad Development forums, part of the iPad App Store category; Hey all, Im tweaking a website for ease-of-use by iPad users. A lot of clickable fields in the original site are too small for finger-based ...

Register with iPad Forums
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    iPad Noob!
    Member #
    84034
    Join Date
    Aug 2011
    Posts
    2

    Ipad Safari -webkit-transform:scaleY(1.25) pushes content off-page

    Hey all,

    Im tweaking a website for ease-of-use by iPad users. A lot of clickable fields in the original site are too small for finger-based tapping, so I figured a quick solution would be to use the CSS3 transform:scaleY() property to make the whole site just a bit taller and easier to tap.

    The problem is, when I scaleY(1.25) any html, Safari/iPad doesn't seem to acknowledge that the total SIZE of the page has changed, and the bottom 20% (.25 out of 1.25) is inaccessible even when you scroll down!

    I'll attach a simple sample HTML file which gives a perfect example of the problem: I created a bunch of lines reading "Test xx" where xx runs from 50 down to 1. As you can see (if you put this html file up and browse to it with an iPad), the bottom 10 lines are cut off at the bottom of the page!

    Here's the html:

    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <style>
                body {
                    -webkit-transform:scaleY(1.25);
                    -webkit-transform-origin:left top;
                }
                </style>
    </head>
    <body>
        Test 50<br>Test 49<br>Test 48<br>Test  47<br>Test 46<br>Test 45<br>Test 44<br>Test  43<br>Test 42<br>Test 41<br>
        Test 40<br>Test 39<br>Test 38<br>Test  37<br>Test 36<br>Test 35<br>Test 34<br>Test  33<br>Test 32<br>Test 31<br>
        Test 30<br>Test 29<br>Test 28<br>Test  27<br>Test 26<br>Test 25<br>Test 24<br>Test  23<br>Test 22<br>Test 21<br>
        Test 20<br>Test 19<br>Test 18<br>Test  17<br>Test 16<br>Test 15<br>Test 14<br>Test  13<br>Test 12<br>Test 11<br>
        Test 10<br>Test  9<br>Test  8<br>Test   7<br>Test  6<br>Test  5<br>Test  4<br>Test   3<br>Test  2<br>Test  1<br>
    </body></html>
    Am I misunderstanding some core concept about scaling, viewports, etc? I know the iPad interprets web-pages differently than standard web browsers to allow for different screen- and viewport-sizes, but the behavior I'm seeing just doesn't add up to me! Scaling the <body> of my page shouldn't push portions of it to some inaccessible region!

    Also, when I'm scaling, firebugLite gets scaled off the bottom of the screen too! So not many options as far as debugging goes!

    (As I typed this, I thought 'maybe I need to apply the scale() to html {} instead' ... So I just tried that, to no avail!)

    Any tips or help would be much appreciated!

    Thanks,

    Matt Ebel

  2. Ads


  3. #2
    iPF Super Guru
    Member #
    40746
    Liked
    93 times
    Join Date
    Mar 2011
    Location
    NW Left Coast
    Posts
    3,504
    Matt, welcome to the forum! Your post was moved from iPad Help to iPad Development where you're more likely to get some valuable responses. Best of luck!

  4. #3
    iPad Noob!
    Member #
    84034
    Join Date
    Aug 2011
    Posts
    2

    Thanks!

    Thanks! This one's really got me stumped!


Home | Forum | Active Topics | What's New

Advertisements

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Page Scrolling in Safari
    By epoche in forum iPad General Discussions
    Replies: 5
    Last Post: 01-10-2012, 04:35 PM
  2. How do I set a home page for safari?
    By italiana830 in forum iPad Help
    Replies: 2
    Last Post: 07-26-2011, 10:30 AM
  3. Replies: 1
    Last Post: 06-15-2011, 09:58 AM
  4. Safari new page question
    By paul9619 in forum iPad General Discussions
    Replies: 7
    Last Post: 01-01-2011, 05:23 PM

Search tags for this page

ipad safai cuts off web pages
,

ipad transform scale

,

ipad webkit-transform-origin

,
is ipad safari webkit
,
webkit ios safari transform origin
,

webkit scaley

,
webkit transform ipad
,
webkit transform origin ipad
,

webkit transform scale safari scroll bug

,
webkit-transform cutting off bottom of webpage safari
,

webkit-transform scaley

,
webkittransform ipad scroll
Click on a term to search for related topics.