Post

Replies

Boosts

Views

Activity

Reply to iOS 26 Safari & WebView: VisualViewport.offsetTop not reset after keyboard dismissal, causing fixed elements misplacement
I checked Apple’s official Support Community page, and the same issue with incorrect positioning of fixed elements also occurs after triggering the keyboard. Here are related StackOverflow discussions on the same problem: iOS 26 Safari - Web layouts are breaking due to fixed/sticky position elements getting shifted vertically iOS 26 Safari visualViewport change after dismissing keyboard
Topic: Safari & Web SubTopic: General Tags:
Sep ’25
Reply to iOS 26 Safari & WebView: VisualViewport.offsetTop not reset after keyboard dismissal, causing fixed elements misplacement
Upon further investigation, my initial assumption that “VisualViewport.offsetTop is not being restored” appears to be inaccurate. In Safari, when continuously swiping upward, offsetTop eventually becomes 0 or very close to 0. However, visualViewport.height consistently remains smaller than window.innerHeight, and as a result, the position of fixed elements remains incorrect and does not align with the expected behavior.
Topic: Safari & Web SubTopic: General Tags:
Sep ’25
Reply to iOS 26 Safari & WebView: VisualViewport.offsetTop not reset after keyboard dismissal, causing fixed elements misplacement
@DTS Engineer I just upgraded Xcode to version 26 and downloaded the official release of iOS 26. The issue with fixed elements being incorrectly positioned after the keyboard has been pulled up within a WebView still exists. I hope Apple can intervene and address this as soon as possible. The changes in iOS 26 have affected web pages across the entire internet.
Topic: Safari & Web SubTopic: General Tags:
Sep ’25