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:
parent
26d2e37339
commit
a88d766078
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue