Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Dec 2015
    Posts
    25
    Member #
    52725
    Liked
    1 times

    What is the right way to approach design regarding worst-case scenario scaling?

    Recently I posted about scaling problems. In particular having to do with textareas being either blocked or squeezed due to the soft keys on a mobile device compressing the page. I don't understand why this happens. When using Reddit for example, if I click on a texbox(focus) the website's height does not compress to 50%. I'm not sure if this is because there is actually content that prevents compression or minimum height is in play.

    I created a simple web app for note taking, you can see in the three comparison images what's happening/attempt to fix. Regular, hidden/but min height, textarea-is forced but still small.

    I've been trying different things. I still think I'm not thinking about this the right way. For example, a button with an automatic height, and font-size set to 100% will compress to a height less than the height of the text. But if I set a min-height of 16px, padding 1%, it won't compress. So it seems to me that I should think with pixels in mind.

    I noticed using actual pixels and not percentages helps keep things from not compressing. I think anyway. So I may initially before page loads perform an ajax request to send device width/height then echo those into the body or large-container as min-height, min-width values.

    I think my next attempt is to create a secondary set of inputs, which when the soft key is triggered and by use of media queries, I'll trigger the second set of top-most inputs to fill the entire screen.

    I'll set a variable that determines which inputs are active. Seems unnecessary. Not knowing makes you try crazy things I guess.

  2.  

  3. #2
    Senior Member Vapr_Arts's Avatar
    Join Date
    Oct 2013
    Location
    California
    Posts
    1,930
    Member #
    37412
    Liked
    544 times
    Quote Originally Posted by GreenAce92 View Post
    Recently I posted about scaling problems. In particular having to do with textareas being either blocked or squeezed due to the soft keys on a mobile device compressing the page. I don't understand why this happens. When using Reddit for example, if I click on a texbox(focus) the website's height does not compress to 50%. I'm not sure if this is because there is actually content that prevents compression or minimum height is in play.

    I created a simple web app for note taking, you can see in the three comparison images what's happening/attempt to fix. Regular, hidden/but min height, textarea-is forced but still small.

    I've been trying different things. I still think I'm not thinking about this the right way. For example, a button with an automatic height, and font-size set to 100% will compress to a height less than the height of the text. But if I set a min-height of 16px, padding 1%, it won't compress. So it seems to me that I should think with pixels in mind.

    I noticed using actual pixels and not percentages helps keep things from not compressing. I think anyway. So I may initially before page loads perform an ajax request to send device width/height then echo those into the body or large-container as min-height, min-width values.

    I think my next attempt is to create a secondary set of inputs, which when the soft key is triggered and by use of media queries, I'll trigger the second set of top-most inputs to fill the entire screen.

    I'll set a variable that determines which inputs are active. Seems unnecessary. Not knowing makes you try crazy things I guess.
    We wont figure this out by looking at photos. The only way we can help is if you show us the code. Preferably by linking it to a lice demo of your project. If not something like JSFiddle.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:37 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com