diff options
| author | Dirk Fauth | 2022-09-28 08:24:42 +0000 |
|---|---|---|
| committer | Dirk Fauth | 2022-09-28 08:24:42 +0000 |
| commit | 1aa3202e7759dd103eebce3188ebfc9a96ced6a1 (patch) | |
| tree | 74f053fc302e9b8f90690bf11cf5648711ddcc71 | |
| parent | 067141ffc513264289f120daf951b7b210842e41 (diff) | |
| download | org.eclipse.nebula.widgets.nattable-1aa3202e7759dd103eebce3188ebfc9a96ced6a1.tar.gz org.eclipse.nebula.widgets.nattable-1aa3202e7759dd103eebce3188ebfc9a96ced6a1.tar.xz org.eclipse.nebula.widgets.nattable-1aa3202e7759dd103eebce3188ebfc9a96ced6a1.zip | |
Bug 580822 - AutoResizeColumnCommandHandler might skip the
TurnViewportOnCommand
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
Change-Id: Ia0bf60fdba140b090fc10ec816ba50e9f553486f
2 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/grid/command/AutoResizeColumnCommandHandler.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/grid/command/AutoResizeColumnCommandHandler.java index bc470d89..e150c4d9 100644 --- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/grid/command/AutoResizeColumnCommandHandler.java +++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/grid/command/AutoResizeColumnCommandHandler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2020 Original authors and others. + * Copyright (c) 2012, 2022 Original authors and others. * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 @@ -99,9 +99,10 @@ public class AutoResizeColumnCommandHandler implements ILayerCommandHandler<Auto if (gridColumnWidths != null && gridColumnWidths.length > 0) { this.commandLayer.doCommand( new MultiColumnResizeCommand(this.commandLayer, gridColumnPositions, gridColumnWidths, true)); - targetLayer.doCommand(new TurnViewportOnCommand()); } + targetLayer.doCommand(new TurnViewportOnCommand()); + return true; } diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/grid/command/AutoResizeRowCommandHandler.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/grid/command/AutoResizeRowCommandHandler.java index 7cda60d8..553af797 100644 --- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/grid/command/AutoResizeRowCommandHandler.java +++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/grid/command/AutoResizeRowCommandHandler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2020 Original authors and others. + * Copyright (c) 2012, 2022 Original authors and others. * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 @@ -97,9 +97,10 @@ public class AutoResizeRowCommandHandler implements ILayerCommandHandler<AutoRes this.commandLayer.doCommand( new MultiRowResizeCommand(this.commandLayer, gridRowPositions, gridRowHeights, true)); - targetLayer.doCommand(new TurnViewportOnCommand()); } + targetLayer.doCommand(new TurnViewportOnCommand()); + return true; } |
