From 0da65a08f78483c99297c982f8099f2aba244c38 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 24 May 2012 16:12:15 -0700 Subject: [PATCH] Fixed gravity issue in notes preview --- astrid/src/com/todoroo/astrid/ui/EditNotesControlSet.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astrid/src/com/todoroo/astrid/ui/EditNotesControlSet.java b/astrid/src/com/todoroo/astrid/ui/EditNotesControlSet.java index dc6d5e1ec..0fadd5656 100644 --- a/astrid/src/com/todoroo/astrid/ui/EditNotesControlSet.java +++ b/astrid/src/com/todoroo/astrid/ui/EditNotesControlSet.java @@ -103,9 +103,11 @@ public class EditNotesControlSet extends PopupControlSet { if (hasNotes() && notesPreview.getLineCount() > 2) { notesBody.setGravity(Gravity.TOP); notesBody.setPadding( notesBody.getPaddingLeft(), (int) (metrics.density * 8), notesBody.getPaddingRight(), (int) (metrics.density * 8)); + notesPreview.setGravity(Gravity.LEFT); } else { notesBody.setGravity(Gravity.CENTER_VERTICAL); notesBody.setPadding( notesBody.getPaddingLeft(), 0, notesBody.getPaddingRight(), 0); + notesPreview.setGravity(Gravity.RIGHT); } }