sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.27k stars 1.05k forks source link

JFXDrawer's content does not fit the entire size of the drawer #1259

Closed valimaties closed 1 year ago

valimaties commented 1 year ago

Hi. I've saw that somehow, when I add a content to the drawer it is added in a HBox control (for left side drawer). So, in the drawer's sidePane I loaded a custom control which contains some buttons. When a button is clicked, the drawer's content is being cleaned-up and a new control is added. This new control is a custom control based on AnchorPane, which contains some other controls. The question is how do I make this custom control to set the size to the entire space in the drawer?

Edit: I made a test with Syste.out.println(), and printed all parent class names till I've reached the JFXDrawer. The result is this:

my class ****.customControls.EmployeesList -> parent: javafx.scene.layout.StackPane -> parent: javafx.scene.layout.HBox -> parent: javafx.scene.layout.StackPane -> parent: com.jfoenix.controls.JFXDrawer.

so, a lot of parent controls here... how do I make my control to fit the entire space of the JFXDrawer?

valimaties commented 1 year ago

I've solved it, it seems my code missing some properties to be set.