Positioning new windows based on the BOB display's x and y properties
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 30/100
Direção de pesquisa
Start with the cited DockItemRepresentation.java code and trace how command-line launches with target=window are handled. Compare that path with the ActionButton behavior for position and dimensions. The issue asks whether to change the default or add an opt-in preference, so the intended behavior needs agreement before implementation can be considered done.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
When a display is launched from the command line and opened as a 'New Window', i.e. phoebus -resource file:/xx/xxx/file.bob?target=window, it will always be positioned at the default x=50, y=50 location on the monitor.
However, when you open a display from an ActionButton in the 'New Window' mode, it reads the x and y defined in the BOB file and positions that display in that location:
https://github.com/ControlSystemStudio/phoebus/blob/31059edc069e5d1df75202c1d6f31972e0a5b868/app/display/runtime/src/main/java/org/csstudio/display/builder/runtime/app/DockItemRepresentation.java#L65
The same is also true of width & height. Opening from an ActionButton will open the window with dimensions based on the BOB display's width and height properties:
https://github.com/ControlSystemStudio/phoebus/blob/31059edc069e5d1df75202c1d6f31972e0a5b868/app/display/runtime/src/main/java/org/csstudio/display/builder/runtime/app/DockItemRepresentation.java#L86
, while launching from a terminal using the default 1600 x 900 dimensions.
These two behaviors seem inconsistent. While I know that you can manually specify the width, height, x and y from the command line, I was wondering whether the default behavior when launching a new window from the terminal should be to position the new window at the x and y defined in the model and resize the window accordingly?
This was also what used to be done by CS-Studio when you opened with Position=NEW_SHELL in the command line argument.
Any thoughts on whether this would be a reasonable thing to do? It would impact the existing behavior so we may need to use an 'opt in' preference.
- Linguagem predominante
- Java
- Estrelas
- 130
- Forks
- 132
- Merge médio
- 2d 11h
- PRs com merge (30d)
- 19
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ControlSystemStudio/phoebus
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ControlSystemStudio/phoebus#3983 ·
Mantenedores costumam responder em até 2 dias
-
Create CONTRIBUTING.mdAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ControlSystemStudio/phoebus#3979 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
ControlSystemStudio/phoebus#3962 ·
Mantenedores costumam responder em até 2 dias
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
ControlSystemStudio/phoebus#3865 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 52/100
ControlSystemStudio/phoebus#3980 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de ControlSystemStudio/phoebus
Issues semelhantes
-
dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's MavenTalvez já em andamento @kou assumiu hoje. AbertaType: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
apache/arrow-adbc#4947 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
checkstyle/checkstyle#22153 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
Mantenedores costumam responder em até 1 dia
-
Documentation Needs Triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
frankframework/frankframework#11908 ·
Mantenedores costumam responder em até 1 dia