adds invalidate method and proper resizing

This commit is contained in:
gellert
2016-09-01 19:25:12 +02:00
parent d1274bb79f
commit b4c220613f
6 changed files with 31 additions and 5 deletions

View File

@@ -205,6 +205,10 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
void NativeWindow::SetSize(const gfx::Size& size, bool animate) {
SetBounds(gfx::Rect(GetPosition(), size), animate);
const auto view = web_contents()->GetRenderWidgetHostView();
if (view)
view->SetSize(size);
}
gfx::Size NativeWindow::GetSize() {