Fixed bugs with expansion of layout of webview panel