RFR: 8130738: TextFlow's tab width is static
Scott Palmer
swpalmer at gmail.com
Thu Nov 7 14:38:37 UTC 2019
setValue(null) is interpreted as set(0) by IntegerProperty. This in turn will be clamped to 1 by the TextLayout. The property on the Text node will still read as 0.
So now that you mention it, I don’t like where the clamping is implemented. I should clamp so it reads back as 1 - Fixed.
Scott
> On Nov 6, 2019, at 11:23 PM, David Grieve <David.Grieve at microsoft.com> wrote:
>
> What happens if you do text.tabSizeProperty().setValue(null) ?
>
>> -----Original Message-----
>> From: openjfx-dev <openjfx-dev-bounces at openjdk.java.net> On Behalf Of
>> Scott Palmer
>> Sent: Wednesday, November 6, 2019 11:12 AM
>> To: openjfx-dev at openjdk.java.net
>> Subject: RFR: 8130738: TextFlow's tab width is static
>>
>> Added tabSize property to Text and TextFlow and -fx-tab-size CSS attribute to
>> both. TextFlow's tab size overrides that of contained Text nodes.
More information about the openjfx-dev
mailing list