[geary] Make widget live inside borders of containing div



commit 0e4175ac1cd3ab09e8eb8f1d550c688f88333617
Author: Robert Schroll <rschroll gmail com>
Date:   Wed May 14 10:35:57 2014 -0700

    Make widget live inside borders of containing div

 src/client/composer/composer-embed.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/client/composer/composer-embed.vala b/src/client/composer/composer-embed.vala
index ff1b9f4..f9af0da 100644
--- a/src/client/composer/composer-embed.vala
+++ b/src/client/composer/composer-embed.vala
@@ -94,10 +94,10 @@ public class ComposerEmbed : Gtk.Box, ComposerContainer {
         if (embed == null)
             return false;
         
-        allocation.x = (int) embed.offset_left;
-        allocation.y = (int) embed.offset_top;
-        allocation.width = (int) embed.offset_width;
-        allocation.height = (int) embed.offset_height;
+        allocation.x = (int) (embed.offset_left + embed.client_left);
+        allocation.y = (int) (embed.offset_top + embed.client_top);
+        allocation.width = (int) embed.client_width;
+        allocation.height = (int) embed.client_height;
         return true;
     }
     


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]