Get browser’s width

Welcome! Forums Unity Plugins In-App Web Browser Get browser’s width

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23020
    NinhKidd
    Participant

    Hi
    When I use IAB to LoadHtml, there are some images whose width exceeds the width of the browser, causing the browser to switch to horizontal scrolling.
    So I want to ask if there is any way to get the width of the browser, so I can change the image properties accordingly.
    Thank you!

    #23023
    PiotrPiotr
    Keymaster

    Probably you want to play with viewports: https://www.w3schools.com/css/css_rwd_viewport.asp

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.