try to fix message divider location

dbus-notify
Zlatin Balevsky 2022-04-18 15:57:23 +01:00
parent 08e384067b
commit 0eb96706f7
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 1 deletions

View File

@ -51,10 +51,12 @@ class MessageFolderView {
JPanel folderPanel
void initUI() {
def mainFrame = application.windowManager.findWindow("main-frame")
int dividerLocation = mainFrame.getHeight() / 2
int rowHeight = application.context.get("row-height")
folderPanel = builder.panel (constraints: model.name) {
gridLayout(rows: 1, cols: 1)
splitPane(orientation: JSplitPane.VERTICAL_SPLIT, continuousLayout: true, dividerLocation: 500) {
splitPane(orientation: JSplitPane.VERTICAL_SPLIT, continuousLayout: true, dividerLocation: dividerLocation) {
scrollPane {
table(id: "message-header-table", autoCreateRowSorter: true, rowHeight: rowHeight,
dragEnabled: true, transferHandler: new MessageExportTransferHandler()) {