Completed
Last Updated: 24 Nov 2014 16:22 by ADMIN
ADMIN
George
Created on: 30 May 2014 08:06
Category:
Type: Bug Report
1
FIX. RadRichTextBox - Setting the ScaleFactor property does not center the document
To reproduce:

Add a RadRichTextBox, write some text and set the ScaleFactor property to 0.5f. You will see that the document itself is smaller than the control and is not centered.

Workaround:

Set the font size of the document. This will only scale the text, but will keep the document centered:

void RadTextBox_TextChanged(object sender, EventArgs e)
{

    if (textBox.Text == "")
    {
        return;
    }
    rtb.Document.Selection.SelectAll();
    rtb.DocumentView.ChangeFontSize(float.Parse(this.Get<RadTextBox>().Text));
    rtb.Document.Selection.Clear();
}

Resolution: 
This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox. 
0 comments