JFoenix icon indicating copy to clipboard operation
JFoenix copied to clipboard

JFXProgressBar do not animate when shown in JFXDialog popup

Open tjonsson opened this issue 9 years ago • 3 comments

Add a JFXProgressBar with default values to a JFXDialog and call .show(..)

The dialog is shown but JFXProgressBar appears frozen. This worked fine in version 1.0.0

tjonsson avatar Mar 23 '17 01:03 tjonsson

Hello, this issue seems related to java implementation of ProgressBar and the internal method impl_isTreeVisible(). to solve this issue, you can add event handler on dialog opened to relayout the progress bar skin as below:

dialog.setOnDialogOpened((event)->{
    jfxBar.requestLayout();
});

Regards,

jfoenixadmin avatar Mar 24 '17 08:03 jfoenixadmin

Thank you, that worked.

It looks like JFXTextField is suffering from this too. The Label above the text field is initially located wrong. But correctly positions it self if requestLayout() is called on it.

tjonsson avatar Mar 24 '17 20:03 tjonsson

Hello, we were not able to reproduce using JFXTextField, a sample code demonstrating this issue would be appreciated. please make sure you are using the latest JFoenix build 1.2

Regards,

jfoenixadmin avatar Mar 27 '17 06:03 jfoenixadmin