Monaca Onsen UI Discord Chat Github Repo

Viewpoint - how to force scale display



  • Hi,

    New to this platform - porting and i can’t get my screen to show within Samsung tablet bounders.

    I have to scroll left&right and up&down to view all contents.

    Used the code below but nothing changed.

    <meta name=“viewport” content=“width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1,minimum-scale=1,viewport-fit=cover”>

    <preference name=“Fullscreen” value=“true”/>

    TIA…Q



  • @qfard, you are missing: height=device-height

    Change the tag to:

    <meta name=“viewport” content=“width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no;viewport-fit=cover”>



  • @jamal Thanks for the suggestion - I actually had that it just on many variation changes it was dropped off… I re-added it but still the same issue.

    and for the fullscreen, I had that in the XML.

    nothing seems to work to my my container to fit in scale to full screen.



  • @qfard, under iOS if there is no splash screen specified, the app view height is shrunk. I wonder if this applies to Android devices. Do you have a splash screen of the recommended size added to your project.