Bug: Toggling stacked or tabbed layout off changes the container's split direction
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- desktop
调研方向
The issue names determineSplitLayout() as the function that picks split direction from the monitor shape. Locate it in the extension's JavaScript source and read how callers exit tabbed/stacked groups. The external reproduction script exercises the toggles; done means the original split direction is restored per the acceptance criteria.
由索引模型根据 Issue 内容生成。
描述
Problem. Take a container whose windows sit one above the other (vertical split). Press Super+Shift+S (stacked) and then Super+Shift+S again. The windows come back side by side instead of one above the other. The same happens with Super+Shift+T (tabbed), when a tab group auto-exits because only one window is left, and when the stacked or tabbed feature is turned off in the settings.

Cause. Every way back from a group to a split uses determineSplitLayout(). That picks a direction from the monitor's shape (side by side on a landscape monitor), not from the container. The direction the container had before is not kept anywhere.
Desired outcome. Leaving a tabbed or stacked group restores the split direction the container had before it became a group. The monitor's shape is used only for a group that never was a split, such as one created by drag and drop.
Acceptance criteria.
- A vertical split toggled to stacked and back is a vertical split again; the same for a horizontal split, and for tabbed.
- Switching stacked → tabbed → split (or tabbed → stacked → split) restores the original direction.
- Auto-exit of a tab group, and turning off the stacked or tabbed feature, restore the original direction.
- A group created directly (drag and drop to the centre) still gets the monitor's direction when it leaves the group.
Reproduction: scenarios/17_stack_tab_switching.py (17.1, 17.2).
- 主要语言
- JavaScript
- 星标
- 1.3k
- 派生
- 112
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
forge-ext/forge 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
Bug: Changing a setting while Forge is disabled (e.g. screen locked) throws errors; old handlers keep running可能已有人在做 @mattchristenson 于 39 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
-
Bug: Windows overlap while resizing, until slower apps catch up可能已有人在做 @mattchristenson 于 39 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 30/100
-
Bug: Tabbed and stacked groups that contain a split show windows on top of each other可能已有人在做 @mattchristenson 于 39 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 20/100
-
Bug: Windows in a stacked group are hidden without a trace可能已有人在做 @mattchristenson 于 39 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
Add: ESP 2 RS未关闭approved check:passed feeds:add
难度 1/5 1 小时以内 新手友好度 67/100
-
bug 🐛
难度 2/5 1-3 小时 新手友好度 78/100
comunica/comunica#1960 · 1 条评论 ·
维护者通常 1 天内回复
-
Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 76/100
getsentry/sentry-javascript#26203 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复