Fix information notes size request
authorClaudio Saavedra <csaavedra@igalia.com>
Mon, 20 Jul 2009 15:25:24 +0000 (17:25 +0200)
committerClaudio Saavedra <csaavedra@igalia.com>
Mon, 20 Jul 2009 15:26:18 +0000 (17:26 +0200)
* hildon/hildon-note.c: (label_size_request): Take the note
padding into account when setting the size request.

Fixes: NB#127896 (Information notes text truncated)

ChangeLog
hildon/hildon-note.c

index 1b885b8..853cd35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-07-20  Claudio Saavedra  <csaavedra@igalia.com>
+
+       * hildon/hildon-note.c: (label_size_request): Take the note
+       padding into account when setting the size request.
+
+       Fixes: NB#127896 (Information notes text truncated)
+
 2009-07-16  Claudio Saavedra  <csaavedra@igalia.com>
 
        * configure.ac: postrelease version bump.
index 14c77c1..599cc2d 100644 (file)
@@ -515,7 +515,7 @@ label_size_request                              (GtkWidget      *label,
                                                  GtkRequisition *req,
                                                  GtkWidget      *note)
 {
-    gint note_height = MAX (HILDON_INFORMATION_NOTE_MIN_HEIGHT, req->height);
+    gint note_height = MAX (HILDON_INFORMATION_NOTE_MIN_HEIGHT, req->height + 2*HILDON_MARGIN_DOUBLE);
     g_object_set (note, "height-request", note_height, NULL);
 }