   else
     $('kan-game')?.style?.display = ''
   if url != 'http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/' and !(url?.startsWith('http://osapi.dmm.com/gadgets/ifr'))
-    $('kan-game #webview-wrapper')?.style?.height = $('kan-game webview')?.style?.height = $('kan-game webview /deep/ object[is=browserplugin]')?.style?.height = "#{window.innerHeight - 31}px"
+    $('kan-game #webview-wrapper')?.style?.width = "#{webviewWidth}px"
+    adjustWebviewHeight "#{window.innerHeight - poiControlHeight}px"
+    factor = null
     return
   factor = Math.ceil(window.innerWidth * (if window.doubleTabbed then 4.0 / 7.0 else 5.0 / 7.0) / 800.0 * 100) / 100.0
   if webviewWidth > 0.00001

      document.documentElement.style.overflow = 'hidden';
    }
  """
  $('kan-game #webview-wrapper')?.style?.height = $('kan-game webview')?.style?.height = $('kan-game webview /deep/ object[is=browserplugin]')?.style?.height = "#{Math.floor(480 * factor) - 1}px"
  $('kan-game #webview-wrapper')?.style?.width = "#{Math.floor(800 * factor)}px"
  $('kan-game').style.marginTop = "#{Math.max(0, (window.innerHeight - Math.floor(480 * factor - 1) - 30)) / 2.0}px"
if !window._delay
  adjustSize()
else

    $('kan-game').style.flex = null
    $('poi-app').style.flex = null
    if factor
      adjustWebviewHeight "#{Math.floor(480 * factor) - 5}px"
    else
      adjustWebviewHeight "#{window.innerHeight - 5}px"
    window._delay = true
