Skip to content

CTabFolder topRight WRAP overflow triggers too aggressively on GTK #3138

@vogella

Description

@vogella

Problem

When CTabFolder.setTopRight(control, SWT.RIGHT | SWT.WRAP) is used, the topRight control wraps to a second row below the tabs on Linux/GTK
even when there appears to be sufficient horizontal space. The same configuration renders correctly inline on Windows/macOS.

This causes Eclipse view toolbars (e.g., EGit Staging View) to render below the tab instead of beside the tab title. The issue specifically
affects views whose toolbar contains a ControlContribution with a Text widget (search field).

Removing SWT.WRAP from the caller (SWT.RIGHT only) makes it render inline correctly — but then wrapping never happens when space is genuinely
tight.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions