Setting aspect ratio on tablet portrait mode

    Setting aspect ratio on tablet portrait mode


    Article summary

    In portrait mode on a tablet, you can maintain the aspect ratio of the Shoplive screen or fill the screen completely.

    // Keep aspect ratio
    ShopLive.setKeepAspectOnTabletPortrait(true)
    
    // get it Fullscreen
    ShopLive.setKeepAspectOnTabletPortrait(false)