Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JFXTextField with size=0 and disable=true makes application unresponsive #489

Closed
ewanld opened this issue Nov 2, 2017 · 4 comments
Closed

Comments

@ewanld
Copy link

ewanld commented Nov 2, 2017

Hi!

I have a disabled JFXTextField instance inside a horizontal SplitPane. When I move the SplitPane divider position so that the text field is completely shrinked, the application freezes and I have to kill the process.

The problem doesn't appear when I use a TextField instead of JFXTextField.
My current workaround is to call setMinWidth(1) on the text field.

I am using jfoenix-1.9.1.jar with Java 8.

Here is a complete example to reproduce:

import com.jfoenix.controls.JFXTextField;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.SplitPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class Bug extends Application {

	@Override
	public void start(Stage s) throws Exception {
		final JFXTextField txt = new JFXTextField();
		txt.setDisable(true);
		s.setScene(new Scene(new SplitPane(new BorderPane(), txt)));
		s.show();
	}

	public static void main(String[] args) {
		Application.launch(args);
	}
}
@jfoenixadmin
Copy link
Collaborator

Hello,
I tried this example, but were not able to reproduce. JFoenix 1.10.0 is out, can you re-validate the issue using the latest version?

@ewanld
Copy link
Author

ewanld commented Nov 2, 2017

Thanks for looking into the issue. I still have the problem with v1.10.0.

I am using JDK 1.8.0_144 with windows 7 64 bit.

Here is a screen capture of the problem:

screen

@jfoenixadmin
Copy link
Collaborator

not sure what's causing the issue, especially knowing that JFXTextFieldSkin doesn't override any of the compute width methods.

@jfoenixadmin
Copy link
Collaborator

a new release of JFoenix is out, @ewanld can you revalidate the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants