[Editor] Add scroll bars to LogsPane

This commit is contained in:
2021-03-02 23:09:36 +01:00
parent 4d65e4d5ce
commit 697f8883ab

View File

@@ -5,6 +5,7 @@ import com.bartlomiejpluta.base.editor.common.logs.style.LogsPaneStyle
import com.bartlomiejpluta.base.editor.common.logs.stylesheet.LogsPaneStylesheet
import javafx.scene.layout.StackPane
import org.codehaus.commons.compiler.Location
import org.fxmisc.flowless.VirtualizedScrollPane
import org.fxmisc.richtext.StyledTextArea
import tornadofx.addClass
@@ -16,7 +17,7 @@ class LogsPane(private val locationClick: (location: Location) -> Unit = {}) : S
).apply { isEditable = false }
init {
children += editor
children += VirtualizedScrollPane(editor)
}
fun appendEntry(