Bug 567787 - [Big Sur] Setting Shell visible doesn't send SWT.SetData
for Virtual Tree/Table (Debug hover and inspect dialog are empty)
On macOS 11, set FIRST_COLUMN_MINIMUM_WIDTH to 19, a value less than
that doesn't work.
Change-Id: I906931c7283c3e1c2a5076792171f47b7aa399a2
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 e5d4d6d..045aafd 100644
--- 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
@@ -98,8 +98,12 @@
static int NEXT_ID;
- /* Value has been determined experimentally, see bug 516472. On macOS 10.12, right end of expando triangle is at x=16. */
- static final int FIRST_COLUMN_MINIMUM_WIDTH = 17;
+ /*
+ * Value has been determined experimentally, see bug 516472.
+ * On macOS 10.12, right end of expando triangle is at x=16.
+ * On macOS 11, value less than 19 doesn't work.
+ */
+ static final int FIRST_COLUMN_MINIMUM_WIDTH = 19;
static final int IMAGE_GAP = 3;
static final int TEXT_GAP = 2;
static final int CELL_GAP = 1;