From 1cd3762b0d7707f4dd665c00ff4d83db6172b4a7 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Mon, 25 May 2015 12:51:33 -0400
Subject: [PATCH] Start integrating the Mailvelope browser extension via its API.

---
 skins/larry/ui.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 95efccf..9841851 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -468,6 +468,14 @@
       $('div.rightcol').hide().attr('aria-hidden', 'true');
       $('div.leftcol').css('margin-right', '0');
     }
+
+    var mvlpe = $('#messagebody.mailvelope');
+    if (mvlpe.length) {
+      var h = $('#messagecontent').length ?
+        $('#messagecontent').height() - 16 :
+        $(window).height() - mvlpe.offset().top - 10;
+      mvlpe.height(h);
+    }
   }
 
 

--
Gitblit v1.9.1