_webView->setScalesPageToFit(true); not working in android

  • mihir77
    Likes 0

    Problem Description

    Hi

    _webView->setScalesPageToFit(true);

    is not working on android, i have to scroll the image left and right. it work on ios though

    I want to fit the whole image on the screen in webview.

    Can you please check? I am using cocos2d-x 3.15

     

  • Sonar Systems admin
    Likes 0

    What happens on android?


    This reply has been verified.
  • mihir77
    Likes 0

    the image doesnt fit in the webview. i have to scroll left and right inside the webview to see the complete image..

  • mihir77
    Likes 0

    Hi, did u get it?

  • Sonar Systems admin
    Likes 0

    Use responsive desgin to ensure the image fits.

  • mihir77
    Likes 0

    It fits properly in iphone, only in android it doesn’t  _webView->setScalesPageToFit(true);

  • Sonar Systems admin
    Likes 0

    Could you show me screenshots for iPhone and Android

Login to reply