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

Widget alignment in editor: Use first widget or outline of all widgets?

Aperta
#3,801 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
desktop

Direzione di ricerca

Start by comparing the behavior described in PR #509 with its imported version, PR #579, then locate the display editor’s alignment actions. The issue presents several competing options but does not choose one, so agree on the intended behavior before implementation; done means the chosen alignment behavior is clear and matches the rectangle-and-label example.

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

Descrizione

discussion

The display editor alignment options were initially relative to the first selected widget.
Select a widget, add other widgets to the selection, and when you then align left/right/center, all widgets would be aligned to the left/right/center of the first selected widget.

In https://github.com/kasemir/org.csstudio.display.builder/pull/509 (later imported to phoebus as https://github.com/ControlSystemStudio/phoebus/pull/579), that behavior was changed.
Now left/right/center aligns all selected widget to the left/right/center of the combined widget outline.

The original behavior is more straight forward for precision alignment.
Select a widget that's already in the desired location, then select others and align them to the left/right/center of the first one.

Example:
Create a rectangle, place it as desired.
Create a Label, set text.
Select rectangle, then label, "Align center" and the text will be in the center of the rectangle.

Downside of the original behavior: Nobody knows how to select one widget, then add others to the selection. Need to hold control, command, alt or shift? Much easier to rubber band around all the widgets of interest and align to the outline. But now it's harder to truly align things.

Example:
Create a rectangle, place it as desired.
Create a Label, set text.
Rubberband-select rectangle and label
"Align center" and BOTH widgets will move to the center of their combined outline, so rectangle is no longer where you wanted it.

Options:

Keep as is. Alignment is slightly useless, but I never use it anyway?

Restore original alignment relative to first selected widget, and nobody will remember how to use that?

Remove alignment options to simplify user interface?

Lingua principale
Java
Stelle
130
Fork
132
Merge medio
2g 11h
PR unite (30g)
19

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 ControlSystemStudio/phoebus

Tutte le issue di ControlSystemStudio/phoebus

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.