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

Commit

Permalink
Bug 1144035 - DynaGroup Children table is not visible where the 'display
Browse files Browse the repository at this point in the history
resolution' is 1366x768

Set min member size to dynagroup child table
  • Loading branch information
Libor Zoubek committed Nov 10, 2014
1 parent 6b31fdb commit a0d118b
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -41,6 +41,7 @@
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.DSOperationType;
import com.smartgwt.client.types.ListGridFieldType;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.util.BooleanCallback;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.IButton;
Expand Down Expand Up @@ -69,6 +70,7 @@
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.grid.ListGridRecord;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.Layout;

import org.rhq.core.domain.authz.Permission;
import org.rhq.core.domain.criteria.ResourceGroupDefinitionCriteria;
Expand All @@ -91,8 +93,8 @@
import org.rhq.coregui.client.inventory.groups.definitions.GroupDefinitionExpressionBuilder.AddExpressionHandler;
import org.rhq.coregui.client.util.StringUtility;
import org.rhq.coregui.client.util.enhanced.EnhancedIButton;
import org.rhq.coregui.client.util.enhanced.EnhancedVLayout;
import org.rhq.coregui.client.util.enhanced.EnhancedIButton.ButtonColor;
import org.rhq.coregui.client.util.enhanced.EnhancedVLayout;
import org.rhq.coregui.client.util.message.Message;
import org.rhq.coregui.client.util.message.Message.Severity;

Expand Down Expand Up @@ -122,6 +124,7 @@ public SingleGroupDefinitionView() {
super();
buildForm();
setWidth100();
setOverflow(Overflow.AUTO);
}

public void setGroupDefinition(final GroupDefinition groupDefinition) {
Expand Down Expand Up @@ -295,6 +298,13 @@ public DynaGroupChildrenView(int groupDefinitionId) {
setDataSource(ResourceGroupsDataSource.getInstance());
}

@Override
protected void configureTableContents(Layout contents) {
super.configureTableContents(contents);
contents.setMinMemberSize(100);
contents.setOverflow(Overflow.VISIBLE);
}

@Override
protected void configureTable() {
// i couldn't get percentage widths to work for some reason
Expand Down

0 comments on commit a0d118b

Please sign in to comment.