Center message controls vertically inside their list cells

This commit is contained in:
Kai S. K. Engelbart 2020-09-30 18:59:00 +02:00
parent f5bfb73abe
commit 1b593c2b19
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13

View File

@ -32,6 +32,6 @@ public final class MessageListCell extends AbstractListCell<Message, MessageCont
private void adjustPadding(int listWidth, boolean ownMessage) {
int padding = 10 + Math.max((listWidth - 1000) / 2, 0);
setPadding(ownMessage ? new Insets(0, padding, 6, 0) : new Insets(0, 0, 6, padding));
setPadding(ownMessage ? new Insets(3, padding, 3, 0) : new Insets(3, 0, 3, padding));
}
}