[geary: 1/2] Take zoom level into account when determining preferred height
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary: 1/2] Take zoom level into account when determining preferred height
- Date: Wed, 10 Oct 2018 06:39:53 +0000 (UTC)
commit 14bb8161da0628f5ba0f472c00ebcb2fe40ebf51
Author: Alex Henrie <alexhenrie24 gmail com>
Date: Tue Oct 9 18:24:53 2018 -0600
Take zoom level into account when determining preferred height
src/client/components/client-web-view.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/client/components/client-web-view.vala b/src/client/components/client-web-view.vala
index d1f95b97..898ae1f1 100644
--- a/src/client/components/client-web-view.vala
+++ b/src/client/components/client-web-view.vala
@@ -556,7 +556,7 @@ public class ClientWebView : WebKit.WebView, Geary.BaseInterface {
private void on_preferred_height_changed(WebKit.JavascriptResult result) {
try {
- int height = (int) WebKitUtil.to_number(result);
+ int height = (int) GLib.Math.ceil(WebKitUtil.to_number(result) * this.zoom_level);
// Avoid notifying if the values have not changed
if (this.preferred_height != height) {
// value has changed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]