Positioning new windows based on the BOB display's x and y properties
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 30/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Java
- Étoiles
- 130
- Forks
- 132
- Merge moyen
- 3 j 1 h
- PR mergées (30 j)
- 24
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ControlSystemStudio/phoebus
-
Create CONTRIBUTING.mdOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ControlSystemStudio/phoebus#3979 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
ControlSystemStudio/phoebus#3962 ·
Les mainteneurs répondent en général sous 2 jours
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
ControlSystemStudio/phoebus#3865 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 52/100
ControlSystemStudio/phoebus#3980 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
ControlSystemStudio/phoebus#3978 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de ControlSystemStudio/phoebus
Issues similaires
-
[GLOBAL] Advancement resetOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
Vakore/ZappierGames#184 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
lugassawan/swe-workbench#823 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
cassiancc/Raspberry-Core#69 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
IronCoreLabs/ironcore-alloy#351 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
checkstyle/checkstyle#22145 ·
Les mainteneurs répondent en général sous 1 jour