I have a gwt TextBox whose height is determined by a variable:
aTextBox = new TextBox();
parentLayoutPanel.add(aTextBox);
parentLayoutPanel.setWidgetTopHeight(aTextBox, 0.0, Unit.PX, text_box_height, Unit.PX);
This variable text_box_height is unknown until the page loads. Now I want to make sure the font inside the box matches the size of the box. Currently, I'm attempting to the following:
aTextBox.getElement().getStyle().setProperty("fontSize", Integer.toString(text_box_height) + "px");
Unfortunately, this results in white space above the text which cuts off the bottom of the text:

How can I remove this white space/padding? Or is there a different way to size and position the text in the box? Thank you much!
EDIT: Additional information:
Due to the comments, I've added the following image. The line is the cursor marker.
