Declined
Last Updated: 21 Jun 2018 14:42 by ADMIN
ADMIN
Dimitar
Created on: 08 Mar 2018 09:31
Category: Editors
Type: Bug Report
0
FIX. RadTextBox - the Text is not centered vertically and looks cut off with some fonts
Use attached to reproduce.

Workaround:
RadTextBox tb = new RadTextBox();

tb.Font = new Font(Font.Name, 12F, FontStyle.Bold);

tb.MaxLength = 200;
tb.Name = "textBox1";
tb.Text = "<Required>";
tb.Location = new Point(49, 7);
var pixels = tb.Font.SizeInPoints * 96 / 72;
tb.TextBoxElement.TextBoxItem.HostedControl.MinimumSize = new Size(0, (int)pixels + 6);

Attached Files:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
ADMIN
Dimitar
Posted on: 18 Apr 2018 10:08
This seems to be an issue of the System.Windows.Forms.TextBox.
When we set the BorderStyle of standard TextBox to None, using the same font and text results in a cut off text.
https://stackoverflow.com/questions/8481333/changing-winforms-textbox-to-borderstyle-none-causes-text-to-be-cut-off
https://stackoverflow.com/questions/44546091/italic-characters-bottom-cut-off-in-textbox?rq=1