avoid showing black block when the network is not reacheable

when the network is not reachable, the webview will show some black block(height seems sum of status, nav,bottombar) by scrolling down.
I just disable webview's two attributes:scrollEnable and bounce when it failed to load.
Maybe there is a better way.