Skip to content
Snippets Groups Projects
Commit f81893a3 authored by cramakri's avatar cramakri
Browse files

LMS-1310 GXT is not correctly interpreting heights in ems. Switch to pixels.

SVN: 13853
parent fbef391e
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,8 @@ public class MultilineVarcharField extends TextArea
private static final int DEFAULT_LINES = 5;
private static final int EM_TO_PIXEL = 16;
/** Constructor for default sized field (5 lines). */
public MultilineVarcharField(final String label, final boolean mandatory)
{
......@@ -51,7 +53,9 @@ public class MultilineVarcharField extends TextArea
public void setHeightInLines(int lines)
{
setHeight(lines * DEFAULT_LINE_HEIGHT + "em");
// WORKAROUND: GXT does not correctly interpret heights set in em's. Switch to pixels.
// setHeight(lines * DEFAULT_LINE_HEIGHT + "em");
setHeight((int) (lines * DEFAULT_LINE_HEIGHT * EM_TO_PIXEL));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment