improved css

This commit is contained in:
Stephan Richter
2020-12-05 23:14:24 +01:00
parent fd12d2b515
commit cd96006d7c
3 changed files with 18 additions and 10 deletions

View File

@@ -32,13 +32,6 @@ public class TextDisplay extends StretchableTile {
return super.load(json);
}
@Override
public Tag tag(Map<String, Object> replacements) throws IOException {
if (isNull(replacements)) replacements = new HashMap<String, Object>();
replacements.put("%text%",text);
return super.tag(replacements);
}
@Override
protected Window properties(List<Fieldset> preForm, FormInput formInputs, List<Fieldset> postForm) {
formInputs.add(t("Text"),new Input(TEXT, text));
@@ -61,6 +54,15 @@ public class TextDisplay extends StretchableTile {
protected String stretchType() {
return t("Width");
}
@Override
public Tag tag(Map<String, Object> replacements) throws IOException {
if (isNull(replacements)) replacements = new HashMap<String, Object>();
replacements.put("%text%",text);
Tag tag = super.tag(replacements);
return tag.clazz(tag.get("class")+" fill");
}
public TextDisplay text(String tx) {
text = tx;