Skip to content

Conversation

@HannesWell
Copy link
Member

No description provided.

@github-actions
Copy link
Contributor

Test Results

   382 files  ±0     382 suites  ±0   7m 5s ⏱️ -52s
 4 251 tests ±0   4 242 ✅ ±0   8 💤 ±0  1 ❌ +1 
12 305 runs  ±0  12 214 ✅ ±0  90 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 5e2e87a. ± Comparison against base commit e4a4d28.

@akurtakov
Copy link
Member

Thanks for this change! Test failures on Jenkins are the long standing ones on GTK. Merging.

@akurtakov akurtakov merged commit 5db1843 into eclipse-platform:master Dec 18, 2024
8 of 14 checks passed
@HannesWell HannesWell deleted the input-stream-readAllBytes branch December 18, 2024 08:06
merks pushed a commit to merks/eclipse.platform.swt that referenced this pull request Jan 12, 2025
Newer versions of macOS introduced a new style of table rows with a
padding that is larger than previously seen. This broke item height
computations (eclipse-platform#677). An attempt to fix this had the unexpected side
effect that now some UI elements in Eclipse IDE (and other apps with
"-Dorg.eclipse.swt.internal.carbon.smallFonts" enabled),
eclise.platform.ui eclipse-platform#1674, and it also broke compatibility with older
versions of macOS that did not have the additional padding.

This change reverts the previous fix, and adds logic to enforce the
native item height by default, without making assumption about the exact
height (which varies with "smallFonts", for example).

The setting can be controlled by a new System property,
org.eclipse.swt.internal.cocoa.useNativeItemHeight, that, if set to
false, overrules the default. This allows apps to bring brack the old
macOS behavior.

Lastly, update two tests in Test_org_eclipse_swt_widgets_List that made
assumptions about the item height being different for two small font
sizes -- this is no longer true when the native item height is enforced.
We now increase the font size of the second font such that this corner
case no longer matters.

Fixes eclipse-platform/eclipse.platform.ui#1674
Fixes eclipse-platform#677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants