From dbfab204e740d3971782940d19ef5ad36f750dbb Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Mon, 20 Jul 2009 17:25:24 +0200 Subject: [PATCH] Fix information notes size request * 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 | 7 +++++++ hildon/hildon-note.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1b885b8..853cd35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-07-20 Claudio Saavedra + + * 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 * configure.ac: postrelease version bump. diff --git a/hildon/hildon-note.c b/hildon/hildon-note.c index 14c77c1..599cc2d 100644 --- a/hildon/hildon-note.c +++ b/hildon/hildon-note.c @@ -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); } -- 1.7.9.5