Declined
Last Updated: 06 Aug 2019 13:07 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:
3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 06 Aug 2019 13:07
Hello, JosuĂ©, 

I would like to note that this seems to be an issue of the System.Windows.Forms.TextBox which is internally used in RadTextBox. Hence, this item has been declined.

Feel free to refer to the provided StackOverflow threads which offer a solution for the hosted TextBox

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Josué
Posted on: 31 Jul 2019 14:41
Is there a workaround for this?
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