diff options
| author | Lakshmi Shanmugam | 2021-02-15 21:40:21 +0000 |
|---|---|---|
| committer | Lakshmi P Shanmugam | 2021-05-25 15:53:05 +0000 |
| commit | 294c9873ca2595da3c00921739f2082cda39e9ef (patch) | |
| tree | 83a1d85934faf8209a4afe7fe4c34272870007a2 | |
| parent | a9817f11e82a9fb06ec9113489d16f121e913f2a (diff) | |
| download | eclipse.platform.swt-294c9873ca2595da3c00921739f2082cda39e9ef.tar.gz eclipse.platform.swt-294c9873ca2595da3c00921739f2082cda39e9ef.tar.xz eclipse.platform.swt-294c9873ca2595da3c00921739f2082cda39e9ef.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)
(cherry picked from commit 7d938b6772ce129e0bd82b55c9f602744fc2ea84)
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/180980
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.java | 7 |
1 files changed, 6 insertions, 1 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 672e6ac6d7..5738f18b16 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 @@ -94,7 +94,12 @@ public class Tree extends Composite { static int NEXT_ID; - static final int FIRST_COLUMN_MINIMUM_WIDTH = 5; + /* + * 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; |
