Fix terminal resizing.

This commit is contained in:
Chris Rankin 2017-02-21 12:32:47 +00:00
parent d69d9c6fde
commit faefae01e2
2 changed files with 2 additions and 8 deletions

View File

@ -8,7 +8,6 @@ import javafx.application.Platform
import javafx.embed.swing.SwingNode
import javafx.scene.control.Button
import javafx.scene.control.Label
import javafx.scene.layout.Priority
import javafx.scene.layout.VBox
import javax.swing.SwingUtilities
import net.corda.demobench.model.*
@ -16,7 +15,6 @@ import net.corda.demobench.pty.R3Pty
import net.corda.demobench.rpc.NodeRPC
import net.corda.demobench.ui.PropertyLabel
import tornadofx.Fragment
import tornadofx.vgrow
class NodeTerminalView : Fragment() {
override val root by fxml<VBox>()
@ -42,10 +40,6 @@ class NodeTerminalView : Fragment() {
private var rpc: NodeRPC? = null
private var pty: R3Pty? = null
init {
root.vgrow = Priority.ALWAYS
}
fun open(config: NodeConfig, onExit: () -> Unit) {
nodeName.text = config.legalName
p2pPort.value = config.artemisPort.toString()

View File

@ -16,9 +16,9 @@
<MenuItem fx:id="menuSaveAs" disable="true" text="Save As"/>
</Menu>
</MenuBar>
<StackPane>
<StackPane VBox.vgrow="ALWAYS">
<children>
<TabPane fx:id="nodeTabPane" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="444.0" minWidth="800.0" prefHeight="613.0" prefWidth="1231.0" tabClosingPolicy="UNAVAILABLE" tabMinHeight="30.0"/>
<TabPane fx:id="nodeTabPane" minHeight="444.0" minWidth="800.0" prefHeight="613.0" prefWidth="1231.0" tabClosingPolicy="UNAVAILABLE" tabMinHeight="30.0"/>
<Button fx:id="addNodeButton" mnemonicParsing="false" styleClass="add-node-button" text="Add Node" StackPane.alignment="TOP_RIGHT">
<StackPane.margin>
<Insets right="5.0" top="5.0" />