Idempiere 4374 (#178)

* IDEMPIERE-4374 CSS Field Style not working for WSearchEditor

fix css field style not working for WSearchEditor

* IDEMPIERE-4374 CSS Field Style not working for WSearchEditor

fix css
This commit is contained in:
hengsin 2020-07-22 20:27:51 +08:00 committed by GitHub
parent 26d2e37339
commit a88d766078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -29,6 +29,7 @@ import org.adempiere.webui.LayoutUtils;
import org.adempiere.webui.adwindow.IFieldEditorContainer;
import org.adempiere.webui.component.Bandbox;
import org.adempiere.webui.component.Button;
import org.adempiere.webui.component.ComboEditorBox;
import org.adempiere.webui.component.Datebox;
import org.adempiere.webui.component.DatetimeBox;
import org.adempiere.webui.component.EditorBox;
@ -641,17 +642,23 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
String sclass = style.substring(MStyle.SCLASS_PREFIX.length());
if (component instanceof EditorBox)
((EditorBox)component).getTextbox().setSclass(sclass);
else if (component instanceof ComboEditorBox)
((ComboEditorBox)component).getCombobox().setSclass(sclass);
else
component.setSclass(sclass);
} else if (style != null && style.startsWith(MStyle.ZCLASS_PREFIX)) {
String zclass = style.substring(MStyle.ZCLASS_PREFIX.length());
if (component instanceof EditorBox)
((EditorBox)component).getTextbox().setZclass(zclass);
else if (component instanceof ComboEditorBox)
((ComboEditorBox)component).getCombobox().setZclass(zclass);
else
component.setZclass(zclass);
} else {
if (component instanceof EditorBox)
((EditorBox)component).getTextbox().setStyle(style);
else if (component instanceof ComboEditorBox)
((ComboEditorBox)component).getCombobox().setStyle(style);
else
component.setStyle(style);
}

View File

@ -123,6 +123,22 @@ span.grid-combobox-editor {
border-left: 1px solid #0000ff;
}
.editor-input.z-combobox + .editor-button {
background-color: #F7F7F7;
width: 22px;
height: 24px;
min-height: 24px;
right: 0px;
top: 1px;
border: 1px solid #CFCFCF;
border-radius: 0;
border-left: 1px solid transparent;
}
.editor-input.z-combobox > .z-combobox-input {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
<%-- payment rule --%>
.payment-rule-editor {
display: inline-block;