Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

FormLayout target feedback is always in the top-left corner

Aperta
#1,632 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
97
Fork
34
Merge medio
23h 46m
PR unite (30g)
51

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-windowbuilder/windowbuilder

Tutte le issue di eclipse-windowbuilder/windowbuilder

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.