Commit b7f868f6 authored by Michael Gratton's avatar Michael Gratton 🤞

Merge branch 'zoom-preferred-height' into 'master'

Take zoom level into account when determining preferred height

See merge request !51
parents 74b3a509 14bb8161
Pipeline #35017 failed with stage
in 17 minutes and 6 seconds
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment