Repository navigation
Tiled layout: shrink neighbours to fit an app's minimum width, and say why a resize stops - #25
Merged
Merged
Conversation
…y why a resize stops A tile whose window has a learned minimum width now gets its split ratios adjusted so the neighbours shrink, instead of the tile overlapping them. The overlap stays as the fallback when the minimums can't all fit or a neighbour would drop below a sensible size. A resize or width cycle that would go below the minimum stops at it and shows a short on-screen message naming the app and its minimum.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setColumnWidthFromResize) or a width cycle that would go below a window's minimum stops at the minimum and shows, through the existing workspace HUD, e.g. "Safari has a minimum width of 800 px, so Glide can't make it narrower." Mouse resizes show it once per drag (the existing debounced reassert). New string added toSources/Glide/Localizable.xcstringsin all languages the app ships.Branched from
origin/main. Does not touch PR #24'sfocusTabOrTile, though both changeWorkspace.swift, so expect a small merge conflict there if #24 lands first.Test plan
xcodebuild ... -scheme Glide ... testwithTEST_HOST= BUNDLE_LOADER=(no app launch): 253 tests, 0 failuresTiledLayoutTests: neighbour shrinks with no overlap; overlap fallback when minimums can't fit; neighbour floor; second-part tile met through its earlier split; resize and width cycle stop at the minimumLocalizationTests(every string in every language) pass