Skip to content

Commit

Permalink
SwingNodePropertyEditor: Try to fix layout for TransferFunctionEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
skalarproduktraum committed Jul 7, 2023
1 parent f0d3751 commit 1ef9189
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/kotlin/sc/iview/ui/SwingNodePropertyEditor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,17 @@ class SwingNodePropertyEditor(private val sciView: SciView) : UIComponent<JPanel
val pluginInstance = pluginService.createInstance(pluginInfo)
val harvester = pluginInstance as SwingGroupingInputHarvester
inputPanel = harvester.createInputPanel()
inputPanel.component.layout = MigLayout("fillx,wrap 1", "[right,fill,grow]")
inputPanel.component.layout = MigLayout("fillx,wrap 1,debug,insets 0 0 0 0", "[right,fill,grow]")

// Build the panel.
try {
harvester.buildPanel(inputPanel, module)
updatePropertiesPanel(inputPanel.component)

val n = sceneNode
if(n is Volume) {
val tfe = TransferFunctionEditor(n, n.name)
if(sceneNode is Volume) {
val tfe = TransferFunctionEditor(sceneNode, sceneNode.name)
tfe.preferredSize = Dimension(300, 300)
tfe.layout = MigLayout("fillx,flowy,insets 0 0 0 0, debug", "[right,fill,grow]")
inputPanel.component.add(tfe)
}

Expand Down

0 comments on commit 1ef9189

Please sign in to comment.