IDEMPIERE-4509 Grid View Horizontal scrolling is not working well (#323)

Disable the use of Frozen
This commit is contained in:
hengsin 2020-10-27 07:19:30 +08:00 committed by GitHub
parent 9162b60af7
commit 237df8203c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -60,7 +60,6 @@ import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Cell; import org.zkoss.zul.Cell;
import org.zkoss.zul.Column; import org.zkoss.zul.Column;
import org.zkoss.zul.Div; import org.zkoss.zul.Div;
import org.zkoss.zul.Frozen;
import org.zkoss.zul.Paging; import org.zkoss.zul.Paging;
import org.zkoss.zul.Row; import org.zkoss.zul.Row;
import org.zkoss.zul.Tabpanel; import org.zkoss.zul.Tabpanel;
@ -529,6 +528,9 @@ public class GridView extends Vlayout implements EventListener<Event>, IdSpace,
Columns columns = new Columns(); Columns columns = new Columns();
//frozen not working well on tablet devices yet //frozen not working well on tablet devices yet
//frozen is implemented poorly on zk ce, not working with scroll and white-space wrap
//unlikely to be fixed since the working 'smooth scrolling frozen' is a zk ee only feature
/*
if (!ClientInfo.isMobile()) if (!ClientInfo.isMobile())
{ {
Frozen frozen = new Frozen(); Frozen frozen = new Frozen();
@ -536,6 +538,7 @@ public class GridView extends Vlayout implements EventListener<Event>, IdSpace,
frozen.setColumns(2); frozen.setColumns(2);
listbox.appendChild(frozen); listbox.appendChild(frozen);
} }
*/
org.zkoss.zul.Column selection = new Column(); org.zkoss.zul.Column selection = new Column();
selection.setHeight("2em"); selection.setHeight("2em");

View File

@ -338,13 +338,13 @@
@media only screen @media only screen
and (max-device-width: 700px) { and (max-device-width: 700px) {
.adtab-grid > .z-cell > .z-label { .mobile .adtab-grid > .z-cell > .z-label {
white-space: pre-line; white-space: pre-line;
} }
} }
.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 {
white-space: pre-wrap;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: pre-line;
} }
.mobile-overflow-link { .mobile-overflow-link {