Fixed gravity issue in notes preview

pull/14/head
Sam Bosley 13 years ago
parent d3fc0b7d5c
commit 0da65a08f7

@ -103,9 +103,11 @@ public class EditNotesControlSet extends PopupControlSet {
if (hasNotes() && notesPreview.getLineCount() > 2) { if (hasNotes() && notesPreview.getLineCount() > 2) {
notesBody.setGravity(Gravity.TOP); notesBody.setGravity(Gravity.TOP);
notesBody.setPadding( notesBody.getPaddingLeft(), (int) (metrics.density * 8), notesBody.getPaddingRight(), (int) (metrics.density * 8)); notesBody.setPadding( notesBody.getPaddingLeft(), (int) (metrics.density * 8), notesBody.getPaddingRight(), (int) (metrics.density * 8));
notesPreview.setGravity(Gravity.LEFT);
} else { } else {
notesBody.setGravity(Gravity.CENTER_VERTICAL); notesBody.setGravity(Gravity.CENTER_VERTICAL);
notesBody.setPadding( notesBody.getPaddingLeft(), 0, notesBody.getPaddingRight(), 0); notesBody.setPadding( notesBody.getPaddingLeft(), 0, notesBody.getPaddingRight(), 0);
notesPreview.setGravity(Gravity.RIGHT);
} }
} }

Loading…
Cancel
Save