Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

FormLayout target feedback is always in the top-left corner

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đá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
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
desktop

Hướng nghiên cứu

The issue is in FormHeaderLayoutEditPolicy.java lines 133-142, where feedback location is hardcoded. Look at AbstractDimensionSelectionEditPolicy.java lines 72-78 for the Swing Mig- and FormLayout approach. The fix involves calculating the feedback figure position relative to the cursor location (x+10, y+10) depending on which ruler is moved. Test by running the SWT FormLayout in 'classic' mode and moving layout lines to see if feedback follows.

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

Mô tả

good first issue
Image

The feedback is hard-coded to be in the top-left corner of the viewer, which makes it hard to follow. When the viewer is scrolled, it's also not visible at all...

https://github.com/eclipse-windowbuilder/windowbuilder/blob/52f91b610499e2182fe5ad09908a6e0efe33dd39/org.eclipse.wb.swt/src/org/eclipse/wb/internal/swt/gef/policy/layout/form/FormHeaderLayoutEditPolicy.java#L133-L142

We should use a similar approach as used in e.g the Swing Mig- and FormLayout, where the location of the figure is at (10, y + 10) or (x + 10, 10), where (x, y) is the cursor location and depending on whether the horizontal or vertical ruler is moved. In short: The figure should be at the line we're currently moving.

https://github.com/eclipse-windowbuilder/windowbuilder/blob/52f91b610499e2182fe5ad09908a6e0efe33dd39/org.eclipse.wb.swing/src/org/eclipse/wb/internal/swing/gef/policy/layout/header/selection/AbstractDimensionSelectionEditPolicy.java#L72-L78

Hint: This selection policy is only used when using the "classic" FormLayout mode.

Ngôn ngữ chính
Java
Star
97
Fork
34
Merge trung bình
23 giờ 46 phút
Pull request đã merge (30 ngày)
51

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

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 eclipse-windowbuilder/windowbuilder

Tất cả issue của eclipse-windowbuilder/windowbuilder

Issue tương tự

Thêm issue về Java

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.