Incorrect behavior of clearable TextField

Issue #803 new
Petr Panteleyev
created an issue

TextField created by TextFields.createClearableTextField() does not handle its size properly.

How to reproduce:

  1. Build and run attached file with controlsfx-9.0.0.jar

javac -cp ./controlsfx-9.0.0.jar DemoApp.java

java -cp ./controlsfx-9.0.0.jar:. DemoApp

  1. Splitter can be moved freely left and right.
  2. Uncomment "TextField field = TextFields.createClearableTextField();"
  3. Splitter can be moved only to the right but never back again.

java version "9" Java(TM) SE Runtime Environment (build 9+181) Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

macOS Sierra 10.12.6

Comments (6)

  1. Matthieu Steyt

    I came across this problem too. The problem is that CustomTextFieldSkin is missing implementations for computeMinWidth() (en by extension for computeMinHeight()). The left and right pane in the skin shouldn't be managed nodes either.

    In attachment you can find an patch resolving this issue. It should not introduce a regression in relation to previous issues (issue #637, issue #464, issue #545)

  2. Log in to comment