Return proper dimensions for webview elements