Selection width not changing with font size

2 posts, 0 answers
  1. Bradley
    Bradley avatar
    16 posts
    Member since:
    Aug 2010

    Posted 22 Oct 2012 Link to this post

    On my RichTextBox if you type something in, select the text, and increase the font size the width of the selector is no longer spanning the width of the text.  See attached please.  Works fine with decreasing the font.
  2. Vasil
    Vasil avatar
    124 posts

    Posted 25 Oct 2012 Link to this post

    Hello Bradley,

    This is a known issue for us and it has already been fixed in 2012 Q3 version of the control, so you could give it a try. If you are not able to upgrade your project, you could use as a workaround BeginUpdate() and EndUpdate() methods of DocumentSelection after changing of the font size or when ChangeFontSizeCommand is executed:

    public MainWindow()
        this.radRichTextBox.CommandExecuted += (sender, e) =>
                if (e.Command is ChangeFontSizeCommand)

     I hope this solves your problem. Do not hesitate to contact us if you have other questions.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top