IDEMPIERE-3518 Improvement For Mobile Compatibility. Minor fix for process modal dialog and login user popup

This commit is contained in:
Heng Sin Low 2017-11-17 21:54:16 +08:00
parent e7540e1c70
commit 90949747f0
4 changed files with 13 additions and 4 deletions

View File

@ -87,7 +87,7 @@ public class ProcessModalDialog extends AbstractProcessDialog implements EventLi
if (mainParameterLayout != null)// when auto start it's null
{
mainParameterLayout.setStyle("max-height:" + ClientInfo.get().desktopHeight + "px");
ZKUpdateUtil.setVflex(mainParameterLayout, "min");
ZKUpdateUtil.setVflex(mainParameterLayout, "1");
}
if (topParameterLayout != null)
{

View File

@ -307,8 +307,8 @@ public class UserPanel implements EventListener<Event>, Composer<Component>
popup.detach();
}
popup = new Popup();
popup.setSclass("user-panel-popup");
Vlayout layout = new Vlayout();
layout.setStyle("padding: 8px 16px");
String email = getUserEmail();
if (!Util.isEmpty(email))
{
@ -330,6 +330,7 @@ public class UserPanel implements EventListener<Event>, Composer<Component>
popup.setPage(component.getPage());
popup.setVflex("min");
popup.setHflex("min");
popup.setStyle("max-width: " + ClientInfo.get().desktopWidth + "px");
popup.addEventListener(Events.ON_OPEN, (OpenEvent oe) -> {
if (!oe.isOpen())
popup.setAttribute(popup.getUuid(), System.currentTimeMillis());

View File

@ -241,3 +241,11 @@
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;
}

View File

@ -76,12 +76,12 @@ when detect side effect, fix to only apply for parameter window*/
}
@media screen and (max-width: 700px) {
.input-paramenter-layout{
width: 90%;
width: 90% !important;
}
}
@media screen and (max-width: 500px) {
.input-paramenter-layout{
width: 100%;
width: 100% !important;
}
}