fixed a bug properties view won't show scroll bars

This commit is contained in:
minjaesong
2019-01-06 03:25:40 +09:00
parent 4072b9fb09
commit 1696cc8601
2 changed files with 3 additions and 3 deletions

View File

@@ -160,7 +160,9 @@ class ADPropertyObject(propertyRaw: String) {
fun isADstring(property: String) = !isADvariable(property)
}
data class Vector2i(var x: Int, var y: Int)
data class Vector2i(var x: Int, var y: Int) {
override fun toString() = "$x, $y"
}
enum class ADPropertyType {
NAME_ONLY, // "sprite/test.tga" to nothing

View File

@@ -101,8 +101,6 @@ class SpriteAssemblerApp : JFrame() {
panelPartsList.add("Skeletons", JScrollPane(panelSkeletonsList))
val panelDataView = JSplitPane(JSplitPane.VERTICAL_SPLIT, JScrollPane(panelProperties), panelPartsList)
panelProperties.preferredSize = Dimension(1, 300)
panelPartsList.preferredSize = Dimension(1, 200)
val panelTop = JSplitPane(JSplitPane.HORIZONTAL_SPLIT, JScrollPane(panelPreview), panelDataView)