Center message controls vertically inside their list cells
This commit is contained in:
parent
f5bfb73abe
commit
1b593c2b19
@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user