"Top" default positions ignored when the panel is at the top of the screen – new notes always open top left
Los mantenedores suelen responder en 8 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
Localiza el código fuente del applet Sticky Notes e inspecciona get_direction() y find_note_location(). Reproduce con el panel en la parte superior y luego verifica que el cálculo de posición sume workarea.x/workarea.y y que la comprobación de límites use el ancho y el alto de la nota en el orden correcto. Hecho significa que Top Right/Top Center se abren debajo del panel superior y el fallback ya no se dispara.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Distribution
Linux Mint 22.3
Package version
Cinnamon 6.6.9
Graphics hardware in use
No response
Frequency
Always
Bug description
With the Cinnamon panel at the top of the screen, setting Preferences → Notes → Default position to "Top Right" (or "Top Center") has no effect: every new note opens in the top left corner. "Center Right" and "Bottom Right" work as expected.
Steps to reproduce
- Move the Cinnamon panel to the top of the screen (panel height > 20 px).
- In Sticky Notes, set Default position to "Top Right".
- Create a new note from the tray icon.
Expected behavior
Expected: the note opens in the top right corner, below the panel.
Actual: the note opens in the top left corner.
Additional information
Cause
In get_direction() the position is computed from the workarea size only, without the workarea origin:
else:
y = 20
With a top panel, workarea.y equals the panel height, so y = 20 lies inside the panel. find_note_location() then fails the bounds check (y < min_y) and falls back to workarea.x + 20, workarea.y + 20, i.e. top left. The same applies to x with a panel on the left.
Suggested fix: add the workarea origin, e.g. x = workarea_rect.x + … and y = workarea_rect.y + 20.
Possibly related
In the bounds check of find_note_location(), width and height seem to be swapped:
x_end = x + default-height
y_end = y + default-width
System
- Linux Mint 22.3
- sticky 1.31
- Panel position: top
- Lenguaje dominante
- JavaScript
- Estrellas
- 5.7k
- Forks
- 941
- Merge medio
- 7 d 9 h
- PR fusionados (30 d)
- 13
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de linuxmint/cinnamon
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 8 días
-
Sound applet: seek bar jumps back after seeking when player resends metadata (e.g. mpDris2/MPD)AbiertoBUG
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 8 días
-
Menu applet omits descriptions from search-provider resultsPosiblemente ocupada @ah682 la tomó hace 8 días. AbiertoBUG
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
linuxmint/cinnamon#14104 · 2 comentarios ·
Los mantenedores suelen responder en 8 días
-
xapp-status applet: status icon labels are ellipsized to "..." when the panel zone is a fraction of a pixel shortQuizá libre de nuevo @Priyeshshrivastav la tomó hace 14 días y no hay ningún pull request abierto. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
linuxmint/cinnamon#14096 · 1 comentario ·
Los mantenedores suelen responder en 8 días
-
Grouped Window List applet gets out of sync when a program is removed directly from Startup ApplicationsQuizá libre de nuevo @Aaqibhafeezkhan la tomó hace 32 días y no hay ningún pull request abierto. AbiertoBUG
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
linuxmint/cinnamon#14057 · 1 comentario ·
Los mantenedores suelen responder en 8 días
Todos los issues de linuxmint/cinnamon
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
fmhy/edit#7340 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Edit: Tele1 Logo [SV]Abiertocheck:passed logos:edit
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPosiblemente ocupada @pcbeingused333 la tomó hoy. AbiertoBug db: d1-sqlite Payload OSS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
payloadcms/payload#19766 ·
Los mantenedores suelen responder en 1 día
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
inverse-inc/packetfence#9707 ·
Los mantenedores suelen responder en 1 día
-
feedback simulation workshop
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
githubnext/gh-aw-workshop#5896 ·
Los mantenedores suelen responder en 1 día