Grid inside RolloutView now has a horizontal scrollbar (#404)
* Insert placeholder for customizing the space between the last action button and the right border of the rollout table Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com> * Insert horizontal scrollbar, widen space between action buttons Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
This commit is contained in:
committed by
Kai Zimmermann
parent
a9c337af6a
commit
5707e5908a
@@ -160,8 +160,8 @@ public class RolloutListGrid extends AbstractGrid {
|
||||
/**
|
||||
* Handles the RolloutChangeEvent to refresh the item in the grid.
|
||||
*
|
||||
* @param rolloutChangeEvent
|
||||
* the event which contains the rollout which has been changed
|
||||
* @param eventContainer
|
||||
* container which holds the rollout change event
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@EventBusListenerMethod(scope = EventScope.UI)
|
||||
@@ -258,12 +258,12 @@ public class RolloutListGrid extends AbstractGrid {
|
||||
|
||||
if (permissionChecker.hasRolloutUpdatePermission()) {
|
||||
getColumn(UPDATE_OPTION).setMinimumWidth(25);
|
||||
getColumn(UPDATE_OPTION).setMaximumWidth(25);
|
||||
getColumn(UPDATE_OPTION).setMaximumWidth(40);
|
||||
} else {
|
||||
getColumn(PAUSE_OPTION).setMaximumWidth(60);
|
||||
}
|
||||
|
||||
getColumn(VAR_TOTAL_TARGETS_COUNT_STATUS).setMinimumWidth(280);
|
||||
|
||||
setFrozenColumnCount(getColumns().size());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -290,7 +290,12 @@ public class RolloutListGrid extends AbstractGrid {
|
||||
getColumn(UPDATE_OPTION).setHeaderCaption(i18n.get("header.action.update"));
|
||||
}
|
||||
|
||||
final HeaderCell join = getDefaultHeaderRow().join(RUN_OPTION, PAUSE_OPTION, UPDATE_OPTION);
|
||||
HeaderCell join;
|
||||
if (permissionChecker.hasRolloutUpdatePermission()) {
|
||||
join = getDefaultHeaderRow().join(RUN_OPTION, PAUSE_OPTION, UPDATE_OPTION);
|
||||
} else {
|
||||
join = getDefaultHeaderRow().join(RUN_OPTION, PAUSE_OPTION);
|
||||
}
|
||||
join.setText(i18n.get("header.action"));
|
||||
}
|
||||
|
||||
|
||||
@@ -173,8 +173,6 @@ public class RolloutGroupListGrid extends AbstractGrid {
|
||||
getColumn(SPUILabelDefinitions.ROLLOUT_GROUP_THRESHOLD).setMaximumWidth(100);
|
||||
|
||||
getColumn(SPUILabelDefinitions.VAR_TOTAL_TARGETS_COUNT_STATUS).setMinimumWidth(280);
|
||||
|
||||
setFrozenColumnCount(7);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -133,9 +133,6 @@ public class RolloutGroupTargetsListGrid extends AbstractGrid {
|
||||
|
||||
getColumn(SPUILabelDefinitions.VAR_LAST_MODIFIED_BY).setMaximumWidth(180);
|
||||
getColumn(SPUILabelDefinitions.VAR_LAST_MODIFIED_BY).setMinimumWidth(50);
|
||||
|
||||
setFrozenColumnCount(getColumns().size());
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user