Unplanned
Last Updated: 10 Mar 2025 14:56 by Martin Ivanov
Martin Ivanov
Created on: 10 Mar 2025 14:56
Category: RichTextBox
Type: Bug Report
1
RichTextBox: Center TextAlignment doesn't work properly when LayoutMode is FlowNoWrap

It seems that the first time a Center TextAlignment is applied to the selection, its length is cached. Because of this, when the selection content (text) changes the length is not updated, thus the text doesn't align properly. It aligns accord to the initial length of the context. The content doesn't update also if the alignment is reset.

 

To work this around, avoid the FlowNoWrap layout mode and use only Flow.

0 comments