Skip to content

Commit

Permalink
Apply viewport changes on View Resize
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Feb 4, 2014
1 parent 17bbace commit 4a809a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadChild.cpp
Expand Up @@ -499,10 +499,13 @@ EmbedLiteViewThreadChild::RecvSetViewSize(const gfxSize& aSize)
}

mHelper->mInnerSize = ScreenIntSize::FromUnknownSize(gfx::IntSize(aSize.width, aSize.height));
mWidget->Resize(0, 0, aSize.width, aSize.height, true);
nsCOMPtr<nsIBaseWindow> baseWindow = do_QueryInterface(mWebBrowser);
baseWindow->SetPositionAndSize(0, 0, mViewSize.width, mViewSize.height, true);
baseWindow->SetVisibility(true);

mHelper->HandlePossibleViewportChange();

return true;
}

Expand Down

0 comments on commit 4a809a2

Please sign in to comment.