Skip to content

Prevent pane grid title bar content and controls from overlapping#1361

Merged
hecrj merged 1 commit into
iced-rs:masterfrom
mtkennerly:feature/prevent-overlapping-title-bar
Jun 23, 2022
Merged

Prevent pane grid title bar content and controls from overlapping#1361
hecrj merged 1 commit into
iced-rs:masterfrom
mtkennerly:feature/prevent-overlapping-title-bar

Conversation

@mtkennerly

Copy link
Copy Markdown
Contributor

This fixes the content/controls becoming unreadable when they overlap in narrow panes.

Should this be configurable? For example:

enum Overlap {
    Allow, // existing behavior
    HideContent, // proposed behavior
    HideControls,
}

Before

before.mp4

After

after.mp4

@hecrj hecrj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! It's definitely better than displaying overlapping elements.

Maybe we could make it configurable in a different PR? Your idea seems great.

Thank you 🙇

@hecrj hecrj added feature New feature or request widget layout labels Jun 17, 2022
@hecrj hecrj added this to the 0.4.3 milestone Jun 17, 2022
@hecrj hecrj merged commit 092dfc3 into iced-rs:master Jun 23, 2022
@hecrj hecrj modified the milestones: 0.4.3, 0.5.0 Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request layout widget

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants