Unplanned
Last Updated: 14 Dec 2017 15:49 by ADMIN
ADMIN
Boby
Created on: 11 Dec 2017 14:37
Category: RichTextBox
Type: Bug Report
12
RichTextBox: 'Decrement paragraph left indent' command can set left indent which makes bullets invisible in Web layout mode
'Decrement paragraph left indent' command can set negative left indent which makes bullets/numbering of a list clipped. Instead, it shouldn't be executed if the bullets/numbering would become invisible.

Workaround: Cancel the command in CommandExecuting event:

            this.radRichTextBox.CommandExecuting += (sender, e) =>
            {
                if (e.Command == this.radRichTextBox.Commands.DecrementParagraphLeftIndentCommand)
                {
                    if (this.radRichTextBox.Document.Selection.GetSelectedParagraphs().Any(p => p.IsInList && p.LeftIndent <= 24))
                    {
                        e.Cancel = true;
                    }
                }
            };
0 comments