edvin / tornadofx

Lightweight JavaFX Framework for Kotlin
Apache License 2.0
3.68k stars 272 forks source link

Vertical Label Position affects TextArea sizing on a form #182

Closed gtnarg closed 8 years ago

gtnarg commented 8 years ago

The following view produces the following output:

import javafx.geometry.Orientation
import tornadofx.*

class FormView : View("My Form") {
    override val root = stackpane {
        form{

           fieldset("FieldSet"){

               //labelPosition = Orientation.VERTICAL

                field("Field 1"){
                    textarea() {
                       prefRowCount = 2
                    }
                }

               field("Field 2"){
                   textarea() {
                        prefRowCount = 10
                   }
               }
            }
        }
    }
}

image

If I set the label orientation to Orientation.VERTICAL I get the following:

image

Regards, Grant

edvin commented 8 years ago

Thanks for reporting this :) The bug has been fixed and committed to master. It will be in version 1.5.6 which will be released soon. You can try it out by checking out master already now :)

edvin commented 8 years ago

This is the result after the fix:

image

gtnarg commented 8 years ago

Thanks for the quick response!