# HG changeset patch # User Christian Lins # Date 1347538193 0 # Node ID 9969e3b0d860201c21d92228e0346ac0b729cecf # Parent ff28854bfe4232ca2b17f008008af745f64cfda0 Scrolling the project list is now more robust. flys-client/trunk@5455 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r ff28854bfe42 -r 9969e3b0d860 flys-client/ChangeLog --- a/flys-client/ChangeLog Thu Sep 13 12:06:54 2012 +0000 +++ b/flys-client/ChangeLog Thu Sep 13 12:09:53 2012 +0000 @@ -8,6 +8,12 @@ 2012-09-13 Christian Lins + * src/main/java/de/intevation/flys/client/client/ui/ProjectList.java: + Scrolling long Project lists is now more robust (#757), although + the search box is now part of the scrolling pane. + +2012-09-13 Christian Lins + * src/main/java/de/intevation/flys/client/client/FLYSConstants.properties, src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties, src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties, diff -r ff28854bfe42 -r 9969e3b0d860 flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Thu Sep 13 12:06:54 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Thu Sep 13 12:09:53 2012 +0000 @@ -5,8 +5,10 @@ import com.google.gwt.user.client.Timer; import com.google.gwt.user.client.rpc.AsyncCallback; import com.smartgwt.client.types.Alignment; +import com.smartgwt.client.types.Autofit; import com.smartgwt.client.types.ListGridEditEvent; import com.smartgwt.client.types.ListGridFieldType; +import com.smartgwt.client.types.Overflow; import com.smartgwt.client.types.SelectionStyle; import com.smartgwt.client.types.SortArrow; import com.smartgwt.client.types.SortDirection; @@ -191,7 +193,7 @@ protected void initGrid() { grid.setWidth100(); - grid.setHeight100(); + grid.setAutoFitData(Autofit.VERTICAL); grid.setAutoFitMaxWidth(500); grid.setEmptyMessage(messages.no_projects()); grid.setLoadingDataMessage(messages.load_projects()); @@ -204,6 +206,7 @@ grid.setSelectionType(SelectionStyle.SINGLE); grid.setCanReorderFields(false); grid.setLeaveScrollbarGap(false); + grid.setBorder("0px"); ListGridField date = buildDateField(); ListGridField name = buildNameField(); @@ -363,6 +366,7 @@ setShowEdges(false); setLayoutMargin(0); setLayoutAlign(VerticalAlignment.TOP); + setOverflow(Overflow.AUTO); Label title = new Label(messages.projects()); title.setHeight("20"); @@ -384,6 +388,7 @@ TableFilter filter = new TableFilter(); filter.setHeight("30px"); filter.addFilterHandler(this); + filter.setBorder("1px solid gray"); addMember(titleWrapper); addMember(gridWrapper);