mirror of https://github.com/zlatinb/muwire
try to fix message divider location
parent
08e384067b
commit
0eb96706f7
|
@ -51,10 +51,12 @@ class MessageFolderView {
|
||||||
|
|
||||||
JPanel folderPanel
|
JPanel folderPanel
|
||||||
void initUI() {
|
void initUI() {
|
||||||
|
def mainFrame = application.windowManager.findWindow("main-frame")
|
||||||
|
int dividerLocation = mainFrame.getHeight() / 2
|
||||||
int rowHeight = application.context.get("row-height")
|
int rowHeight = application.context.get("row-height")
|
||||||
folderPanel = builder.panel (constraints: model.name) {
|
folderPanel = builder.panel (constraints: model.name) {
|
||||||
gridLayout(rows: 1, cols: 1)
|
gridLayout(rows: 1, cols: 1)
|
||||||
splitPane(orientation: JSplitPane.VERTICAL_SPLIT, continuousLayout: true, dividerLocation: 500) {
|
splitPane(orientation: JSplitPane.VERTICAL_SPLIT, continuousLayout: true, dividerLocation: dividerLocation) {
|
||||||
scrollPane {
|
scrollPane {
|
||||||
table(id: "message-header-table", autoCreateRowSorter: true, rowHeight: rowHeight,
|
table(id: "message-header-table", autoCreateRowSorter: true, rowHeight: rowHeight,
|
||||||
dragEnabled: true, transferHandler: new MessageExportTransferHandler()) {
|
dragEnabled: true, transferHandler: new MessageExportTransferHandler()) {
|
||||||
|
|
Loading…
Reference in New Issue