[geary/wip/713739-inline: 16/37] Make widget live inside borders of containing div



commit 50fa9ed3fe52f2b813d759e5497c37acfe7da3ef
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]