Bug: Toggling stacked or tabbed layout off changes the container's split direction

Đang mở
#563 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@mattchristenson đang làm issue này rồi.

Từ ngày 30/9/2026.

  • #567 của @mattchristenson — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
desktop

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

after toggling stacked twice: main vs fix

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).

Ngôn ngữ chính
JavaScript
Star
1.3k
Fork
112
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của forge-ext/forge

Tất cả issue của forge-ext/forge

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.