[geary/wip/778025-conversation-height-0.12: 1/3] Take zoom level into account when determining preferred height



commit f060ec88b5df2d1173fcff74fbb082fdcec91031
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 44949aab..2fae561d 100644
--- a/src/client/components/client-web-view.vala
+++ b/src/client/components/client-web-view.vala
@@ -551,7 +551,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]