FXMisc / RichTextFX

Rich-text area for JavaFX
BSD 2-Clause "Simplified" License
1.21k stars 237 forks source link

After adding inner margins to CodeArea, VirtualizedScrollPanel displays abnormally #1194

Closed ljy1058318852 closed 11 months ago

ljy1058318852 commented 11 months ago

VirtualizedScrollPanel contains CodeArea. There is no problem with the default scroll bar

But when CodeArea sets the padding (VirtualizedScrollPanel setting padding is invalid), the scroll bar only appears when the internal string of CodeArea exceeds several digits.

<VirtualizedScrollPane minHeight="300" minWidth="300"  style="-fx-background-color: white">
    <content>
        <CodeArea  style="-fx-background-color: red;-fx-padding:20"/>
    </content>
</VirtualizedScrollPane>

richtextfx v0.10.8 java 11

What should I do Do you need to upgrade richtextfx version

Jugen commented 11 months ago

Have found the bug in Flowless and will submit a PR to fix ....

ljy1058318852 commented 11 months ago

Thank you.

ljy1058318852 commented 11 months ago

After you submit the PR, do I need to download new git source code for association in my project instead of using MVN to automatically download it

Jugen commented 11 months ago

Yes, if you want to use it immediately. However I'm probably going to publish a new release of Flowless today or tomorrow, and then RichTextFX next week.

ljy1058318852 commented 11 months ago

Thank you very much. I have chosen to wait for the release to facilitate component version management. Thank you very much

Jugen commented 11 months ago

In case you haven't seen 0.11.2 is now available on Maven