Skip to content

Commit

Permalink
description (text area) field fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Sep 5, 2019
1 parent 8bce46a commit fa30906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -54,7 +54,7 @@ public <IW extends ItemWrapper> boolean match(IW wrapper) {
protected Panel getPanel(PrismPropertyPanelContext<T> panelCtx) {
int size = 10;
if (FocusType.F_DESCRIPTION.equals(panelCtx.getDefinitionName())) {
size = 1;
size = 2;
}
return new TextAreaPanel<>(panelCtx.getComponentId(), panelCtx.getRealValueModel(), size);
}
Expand Down
Expand Up @@ -36,6 +36,7 @@ protected boolean shouldTrimInput() {
return false;
}
};
text.add(AttributeModifier.append("style", "max-width: 100%"));

if (rowsOverride != null) {
text.add(new AttributeModifier("rows", rowsOverride));
Expand Down

0 comments on commit fa30906

Please sign in to comment.