Repository navigation
Fix duplicated widgets and side positioning in design hover/click zones - #3572
Merged
Salvialf merged 3 commits intoOct 14, 2026
Merged
Conversation
…ation fix in case pdo hydratation set timeout to null
- Position option (Top/Left/Bottom/Right...) now displays the widget outside the zone on the chosen side (stored values are converted at display time, no migration needed). Previously 'right:0px' aligned the widget inside the zone, so it opened on the opposite side. - Hover/click widget replaces zone content instead of appending it, and late hover responses are ignored once the mouse has left the zone, avoiding duplicated widgets. Note: existing designs using a non-default position will now display the widget on the configured side. Fixes jeedom#3571
Salvialf
reviewed
Oct 14, 2026
Mips2648
approved these changes
Oct 14, 2026
Salvialf
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3571
Problème / Problem
Sur une zone de design Widget au survol :
On a design hover widget zone, the Position option has no effect, and the widget can be displayed multiple times.
Correction / Fix
Seul fichier modifié :
desktop/js/plan.js. Aucune migration, aucune modification PHP ni en base.getZoneWidgetPosition()qui convertit la valeur enregistrée à l'affichage (right:0px→left:100%,bottom:0px→top:100%, etc.). Le widget s'affiche ainsi à l'extérieur de la zone, du côté choisi. Défaut est inchangé.html(data.html)au lieu dehtml(data.html, true)), le style est appliqué àfirstElementChildau lieu dechildNodes[0], et une réponse AJAX arrivée après la sortie de la souris est ignorée.Les designs existants qui utilisent une position autre que Défaut afficheront désormais le widget du côté configuré.
Existing designs using a non-default position will now display the widget on the configured side.
Tests