improved css
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user