diff options
author | Veronika Irvine <veronika> | 2004-02-09 15:42:21 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2004-02-09 15:42:21 +0000 |
commit | 12588946f81ae7cf5b0461707a77688b961e9a21 (patch) | |
tree | f9af231aa04568407cc7d6e6cac0d363b55a3ff7 /bundles | |
parent | 0c8487c5a06c4c79a76002d2142712f82d3366f1 (diff) | |
download | eclipse.platform.swt-12588946f81ae7cf5b0461707a77688b961e9a21.tar.gz eclipse.platform.swt-12588946f81ae7cf5b0461707a77688b961e9a21.tar.xz eclipse.platform.swt-12588946f81ae7cf5b0461707a77688b961e9a21.zip |
call showColumn to scroll horizontally
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java index 66be96b2f9..d6174ba42b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java @@ -435,12 +435,17 @@ void traverse(Event event) { } void setRowColumn(int row, int column, boolean notify) { - if (0 <= row && row < table.getItemCount()) { - if (0 <= column && column < table.getColumnCount()) { + int itemCount = table.getItemCount(); + int columnCount = table.getColumnCount(); + if (0 <= row && row < itemCount) { + if (0 <= column && column < columnCount) { this.row = row; this.column = column; TableItem item = table.getItem(row); table.showItem(item); + if (columnCount > 1) { + table.showColumn(table.getColumn(column)); + } setBounds(item.getBounds(column)); redraw(); if (notify) { |