When a webview is resized then there can be a delay before the onResize javascript event is triggered to the degree that it ends up triggering with old size values. This is easily done if you are resizing as a user quite quickly.
Attached is an example that shows this.