Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#3,801 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
java
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Java
Estrellas
130
Forks
132
Merge medio
2 d 11 h
PR fusionados (30 d)
19

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ControlSystemStudio/phoebus

Todos los issues de ControlSystemStudio/phoebus

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.