Open infinite-dev22 opened 1 week ago
I think I know what the issue may be
Did you add the VFXScrollPane.css
stylesheet to the scroll pane or scene?
Check this
Indeed, guilty as charged.
I must say, the approach with CSSFragment.Builder
is quite forward-thinking when it comes to handling CSS. It would be more intuitive if .addSelector()
accepted enum-like values representing CSS selectors, and if properties requiring numerical inputs (like sizes) could directly accept numeric values (e.g., doubles).
Additionally, it would enhance usability if .build()
could encapsulate the functionality of .closeSelector()
, making the API cleaner. This way, one could simply instantiate CSSFragment(sp)
without the need for .applyOn(sp)
.
Minimal Reproducible Example (MRE):
CSSFragment(sp).addSelector(".css-class-selector")
.padding(20)
.background("transparent")
.build();
This MRE condenses all of the following:
CSSFragment.Builder.build()
.addSelector(".css-class-selector")
.padding("20px")
.background("transparent")
.closeSelector()
.applyOn(sp);
Thank you for the solution you provided; it has been really helpful!
I'll keep the issue open for now as a reminder to enhance this.
I'm going to add the stylesheet to VFXScrollPane
by default
Yeah I agree, the CSSFragment
can indeed be improved. When I implemented it I was kinda in a hurry to release the new version and I didn't take too much time to polish the API, I made it simple and functional rather than convenient.
I'll try to keep this in mind too
I'm going to add the stylesheet to
VFXScrollPane
by default
This will actually be great, it will make the ScrollPane easily usable out-of-the-box with no extra configurations
Description: I am experiencing an issue with the VFXGrid component in VirtualizedFX. Despite calling the makeScrollable() method, the grid is not scrollable. The cells are rendered efficiently, but the scrolling functionality does not seem to work.
Environment:
Steps to Reproduce:
Expected Behavior:
The grid should be scrollable when items exceed the visible area.
Actual Behavior:
The grid remains static, and no scrolling behavior is observed.
Minimal Reproducible Example (MRE): Item Type Class
Grid Cell Class
View Page Class
Additional Notes:
Could you please assist in resolving this issue?