Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
f81893a3
Commit
f81893a3
authored
15 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1310 GXT is not correctly interpreting heights in ems. Switch to pixels.
SVN: 13853
parent
fbef391e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/field/MultilineVarcharField.java
+5
-1
5 additions, 1 deletion
...eb/client/application/ui/field/MultilineVarcharField.java
with
5 additions
and
1 deletion
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/field/MultilineVarcharField.java
+
5
−
1
View file @
f81893a3
...
...
@@ -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
));
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment