IDEMPIERE-4514 Grid View Layout Bug (#358)
* IDEMPIERE-4514 Grid View Layout Bug Fix layout issue after drag and drop of tab * IDEMPIERE-4514 Grid View Layout Bug Default wrapping of column header only for mobile and small width screen (< 700px)
This commit is contained in:
parent
ed7a7dcbde
commit
abab15b700
|
@ -24,6 +24,7 @@ import org.zkoss.zk.ui.event.DropEvent;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
|
import org.zkoss.zk.ui.util.Clients;
|
||||||
import org.zkoss.zul.Tab;
|
import org.zkoss.zul.Tab;
|
||||||
import org.zkoss.zul.Tabpanels;
|
import org.zkoss.zul.Tabpanels;
|
||||||
|
|
||||||
|
@ -162,6 +163,10 @@ public class Tabs extends org.zkoss.zul.Tabs implements EventListener<Event>
|
||||||
|
|
||||||
insertBefore(draggComp, dropComp);
|
insertBefore(draggComp, dropComp);
|
||||||
tabpanels.insertBefore(draggPanel, dropPanel);
|
tabpanels.insertBefore(draggPanel, dropPanel);
|
||||||
|
if (draggPanel.getPage() != null) {
|
||||||
|
StringBuilder script = new StringBuilder("zk.Widget.$('#").append(draggPanel.getUuid()).append("').rerender(0);");
|
||||||
|
Clients.evalJavaScript(script.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -348,8 +348,13 @@
|
||||||
}
|
}
|
||||||
.adtab-grid > .z-grid-header > table > tbody > tr.z-columns > th.z-column > .z-column-content {
|
.adtab-grid > .z-grid-header > table > tbody > tr.z-columns > th.z-column > .z-column-content {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
@media only screen
|
||||||
|
and (max-device-width: 700px) {
|
||||||
|
.mobile .adtab-grid > .z-grid-header > table > tbody > tr.z-columns > th.z-column > .z-column-content {
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mobile-overflow-link {
|
.mobile-overflow-link {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|
Loading…
Reference in New Issue