Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1302)

Unified Diff: content/renderer/render_view_impl.cc

Issue 8670014: Chrome/Mac layout error on Google Docs Demo page (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index e3833d4319ab76a6500e27ce9e2f7aac4f149430..5660528fae8a19cae4cc8f47cdb76ca2bec3a4a8 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2871,6 +2871,9 @@ void RenderViewImpl::CheckPreferredSize() {
size.set_width(static_cast<int>(size.width() * zoom_factor));
size.set_height(static_cast<int>(size.height() * zoom_factor));
+ if (!size.height())
+ size.set_height(preferred_size_.height());
+
if (size == preferred_size_)
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698