Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2021-02-15 21:40:21 +0000
committerLakshmi P Shanmugam2021-05-31 12:40:56 +0000
commitde18fa2257fd88a6fbd733d510314a9ca1e47260 (patch)
tree7c67623df7258509dfe80b99d99afff4c0be8dd0
parenta8792341d02612ec9c3a7bb9eddddcfbd0fdf8a7 (diff)
downloadeclipse.platform.swt-de18fa2257fd88a6fbd733d510314a9ca1e47260.tar.gz
eclipse.platform.swt-de18fa2257fd88a6fbd733d510314a9ca1e47260.tar.xz
eclipse.platform.swt-de18fa2257fd88a6fbd733d510314a9ca1e47260.zip
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 (cherry picked from commit 5c335bf45fed632fc79e2228becb6037a66c373b) Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/180988 Tested-by: Lakshmi P Shanmugam <lshanmug@in.ibm.com> Reviewed-by: Lakshmi P Shanmugam <lshanmug@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java8
1 files changed, 6 insertions, 2 deletions
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 541b1811df..5be91240fb 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 @@ public class Tree extends Composite {
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;

Back to the top