diff options
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java | 2 | ||||
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java index 9dab20f9f9..1c1613a8f2 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java @@ -2264,6 +2264,7 @@ boolean setScrollWidth (TableItem item) { int oldWidth = (int)firstColumn.width (); if (oldWidth < newWidth) { firstColumn.setWidth (newWidth); + if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false); return true; } return false; @@ -2291,6 +2292,7 @@ boolean setScrollWidth (TableItem [] items, boolean set) { if (oldWidth >= newWidth) return false; } firstColumn.setWidth (newWidth); + if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false); return true; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java index 56f3dcdaa1..cfa2667bda 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java @@ -2367,6 +2367,7 @@ boolean setScrollWidth (boolean set, TreeItem[] items, boolean recurse) { if (oldWidth >= newWidth) return false; } firstColumn.setWidth (newWidth); + if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false); return true; } @@ -2381,6 +2382,7 @@ boolean setScrollWidth (TreeItem item) { int oldWidth = (int)firstColumn.width (); if (oldWidth < newWidth) { firstColumn.setWidth (newWidth); + if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false); return true; } return false; |