Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1128779] Add vertical scrollbar to the listGrid if it does not fi…
Browse files Browse the repository at this point in the history
…t the window

(cherry picked from commit 5e4e635)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>
  • Loading branch information
Michael Burman authored and jkremser committed Oct 3, 2014
1 parent bd45164 commit 6645770
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -31,7 +31,9 @@
import com.google.gwt.core.client.Scheduler.RepeatingCommand;
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.ExpansionMode;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.util.BooleanCallback;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.Canvas;
Expand Down Expand Up @@ -815,9 +817,16 @@ protected Canvas getExpansionComponent(ListGridRecord record) {
ListGridField duration = new ListGridField("duration", MSG.common_title_duration(), 90);
listGrid.setFields(step, result, resultCode, duration);
listGrid.setData(getStepRecords(info));

listGrid.setAutoFitData(Autofit.BOTH);
listGrid.setLeaveScrollbarGap(false);
listGrid.setShowAllRecords(true);
listGrid.setBodyOverflow(Overflow.CLIP_H);
listGrid.setOverflow(Overflow.SCROLL);
listLayout.setLeaveScrollbarGap(true);
listLayout.addMember(listGrid);
listCanvas.setCanvas(listLayout);
listCanvas.setOverflow(Overflow.AUTO);
listLayout.setOverflow(Overflow.AUTO);

// Replace the current info with just the install steps
for (Canvas canvas : this.getChildren()) {
Expand Down

0 comments on commit 6645770

Please sign in to comment.