Skip to content

Conversation

wjtje
Copy link

@wjtje wjtje commented Aug 25, 2025

Instead of using the default aspect ratio of 16:9 it now uses the actual ratio of the display. This results in a better UX for people using portrait displays or ultra-wide displays.

The change is made in the snap assist and default menu.

image

This change is as requested by issue #357

@domferr
Copy link
Owner

domferr commented Sep 27, 2025

Hey, I love it! I'm a bit busy in this period, hope to review soon!

@domferr domferr changed the base branch from v17.0 to v17.1 October 4, 2025 15:05
@domferr
Copy link
Owner

domferr commented Oct 4, 2025

Changed the base branch to v17.1 to aim to get this feature in the upcoming release!

const SNAP_ASSIST_LAYOUT_HEIGHT = 68;
// The size of the smallest size of the monitor
// Will result into a size of 120x68 if the monitor is 16:9
const SNAP_ASSIST_LAYOUT_SIZE = 68;
Copy link
Owner

Choose a reason for hiding this comment

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

That's a great idea!

0,
this._snapAssistantThreshold -
this.height / 2 +
46 * getMonitorScalingFactor(this._monitorIndex) +
Copy link
Owner

Choose a reason for hiding this comment

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

Why 46?

@domferr domferr force-pushed the feat/monitor-aspect-in-layout-preview branch from 38c0e52 to 510ae86 Compare October 4, 2025 19:10
@domferr domferr changed the base branch from v17.1 to main October 4, 2025 19:10
@domferr domferr changed the base branch from main to v17.1 October 4, 2025 19:10
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