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 <[email protected]> wrote:
> 
> What happens if you do text.tabSizeProperty().setValue(null) ? 
> 
>> -----Original Message-----
>> From: openjfx-dev <[email protected]> On Behalf Of
>> Scott Palmer
>> Sent: Wednesday, November 6, 2019 11:12 AM
>> To: [email protected]
>> 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.

Reply via email to