[geary/wip/778025-conversation-height-0.12: 3/5] Take zoom level into account when determining preferred height
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/778025-conversation-height-0.12: 3/5] Take zoom level into account when determining preferred height
- Date: Sun, 14 Oct 2018 01:27:29 +0000 (UTC)
commit bdfaff2859af684407fc4434f37d984552b3194f
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]