Skip to content

Commit

Permalink
Fix clipping issue in YearViewSkin header
Browse files Browse the repository at this point in the history
The clip for the YearViewSkin was incorrectly set to the yearView rather than the header. This change corrects the clipping to ensure the header is properly clipped according to the yearView's dimensions.
  • Loading branch information
leewyatt committed Nov 14, 2024
1 parent b4b16f1 commit 9de6e12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public YearViewSkin(YearView yearView) {
Rectangle clip = new Rectangle();
clip.widthProperty().bind(yearView.widthProperty());
clip.heightProperty().bind(yearView.heightProperty());
yearView.setClip(clip);
header.setClip(clip);

InvalidationListener buildGridListener = obs -> buildGrid();
yearView.valueProperty().addListener(buildGridListener);
Expand Down

0 comments on commit 9de6e12

Please sign in to comment.