IDEMPIERE-3518 Improvement For Mobile Compatibility. Minor fix for process modal dialog and login user popup
This commit is contained in:
parent
e7540e1c70
commit
90949747f0
|
@ -87,7 +87,7 @@ public class ProcessModalDialog extends AbstractProcessDialog implements EventLi
|
||||||
if (mainParameterLayout != null)// when auto start it's null
|
if (mainParameterLayout != null)// when auto start it's null
|
||||||
{
|
{
|
||||||
mainParameterLayout.setStyle("max-height:" + ClientInfo.get().desktopHeight + "px");
|
mainParameterLayout.setStyle("max-height:" + ClientInfo.get().desktopHeight + "px");
|
||||||
ZKUpdateUtil.setVflex(mainParameterLayout, "min");
|
ZKUpdateUtil.setVflex(mainParameterLayout, "1");
|
||||||
}
|
}
|
||||||
if (topParameterLayout != null)
|
if (topParameterLayout != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -307,8 +307,8 @@ public class UserPanel implements EventListener<Event>, Composer<Component>
|
||||||
popup.detach();
|
popup.detach();
|
||||||
}
|
}
|
||||||
popup = new Popup();
|
popup = new Popup();
|
||||||
|
popup.setSclass("user-panel-popup");
|
||||||
Vlayout layout = new Vlayout();
|
Vlayout layout = new Vlayout();
|
||||||
layout.setStyle("padding: 8px 16px");
|
|
||||||
String email = getUserEmail();
|
String email = getUserEmail();
|
||||||
if (!Util.isEmpty(email))
|
if (!Util.isEmpty(email))
|
||||||
{
|
{
|
||||||
|
@ -330,6 +330,7 @@ public class UserPanel implements EventListener<Event>, Composer<Component>
|
||||||
popup.setPage(component.getPage());
|
popup.setPage(component.getPage());
|
||||||
popup.setVflex("min");
|
popup.setVflex("min");
|
||||||
popup.setHflex("min");
|
popup.setHflex("min");
|
||||||
|
popup.setStyle("max-width: " + ClientInfo.get().desktopWidth + "px");
|
||||||
popup.addEventListener(Events.ON_OPEN, (OpenEvent oe) -> {
|
popup.addEventListener(Events.ON_OPEN, (OpenEvent oe) -> {
|
||||||
if (!oe.isOpen())
|
if (!oe.isOpen())
|
||||||
popup.setAttribute(popup.getUuid(), System.currentTimeMillis());
|
popup.setAttribute(popup.getUuid(), System.currentTimeMillis());
|
||||||
|
|
|
@ -241,3 +241,11 @@
|
||||||
padding: 3px 3px;
|
padding: 3px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-panel-popup .z-popup-content {
|
||||||
|
padding-left: 0px;
|
||||||
|
padding-right: 0px;
|
||||||
|
}
|
||||||
|
.user-panel-popup .z-popup-content > .z-vlayout {
|
||||||
|
overflow-x: auto;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
|
@ -76,12 +76,12 @@ when detect side effect, fix to only apply for parameter window*/
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 700px) {
|
@media screen and (max-width: 700px) {
|
||||||
.input-paramenter-layout{
|
.input-paramenter-layout{
|
||||||
width: 90%;
|
width: 90% !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 500px) {
|
@media screen and (max-width: 500px) {
|
||||||
.input-paramenter-layout{
|
.input-paramenter-layout{
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue