The height of the WebView is incorrect on iOS. | Community
Skip to main content

The height of the WebView is incorrect on iOS.

  • March 29, 2023
  • 2 replies
  • 0 views

Cliff13

The height of the WKWebview in the ZendeskArticleViewController is much larger than the content area. Please see the attached photo below.

 

The ZDKArticleViewController has a WKWebView internally, and the height of the WKWebView is too large for the content area.

 

The code to present the ZDKArticleViewController is shown below.

Not all iPhones are experiencing this issue. the device experiencing this issue is an iPhone 6S+ with iOS 15.5. Any advice?

func presentArticle(article: ZDKHelpCenterArticle) {
        let articleConfig = ArticleUiConfiguration()
        articleConfig.showContactOptions = false

        let hcConfig = HelpCenterUiConfiguration()
        hcConfig.showContactOptions = false

        let articleController = HelpCenterUi.buildHelpCenterArticleUi(withArticleId: article.identifier.stringValue, andConfigs: [articleConfig, hcConfig])
self.present(articleController, animated: true)
}

2 replies

Greg29
  • March 29, 2023
Hi Cliff! I'm honestly not sure if this behavior is expected or not on a device from 2015, but I've reached out to our dev to see what they have to say on the topic. I'll drop an update when I hear back from them.

Cliff13
  • Author
  • April 26, 2023

@greg29 Will I know what's going on?