Project

General

Profile

Bug #103109

calendrier "agenda hebdomadaire" pas visible

Added by Frédéric Péters 7 days ago. Updated 2 days ago.

Status:
Résolu (à déployer)
Priority:
Normal
Target version:
-
Start date:
09 March 2025
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

En local (avec Firefox 136) le calendrier ne s'affiche pas,

    function updateColumnsWidth(e, a) {
      const minWidth = $slider.css('--min-column-width');
      const availableWidth = $weekList[0].offsetWidth;
      let columnsWidth = availableWidth < minWidth ? availableWidth : availableWidth / Math.floor(availableWidth / minWidth);

Le "weekList0" est l'élément sélectionné dans la capture, il a une largeur de 0, et ça vient apparemment de ce code, qui commence avec availableWidth à 0 ça amène columnsWidth à 0.

Pour résoudre en local j'ai posé :

-      const availableWidth = $weekList[0].offsetWidth;
+      const availableWidth = $weekList[0].offsetWidth || minWidth;

et je ne vois pas d'effet négatif possible, donc je vais en faire une PR.


Files

agenda-hebdo-largeur-zero.png (103 KB) agenda-hebdo-largeur-zero.png Frédéric Péters, 09 March 2025 11:37 AM

Associated revisions

Revision 9c29b339 (diff)
Added by Frédéric Péters 7 days ago

family: never give agenda columns a zero width (#103109)

History

#1

Updated by Robot Gitea 7 days ago

  • Status changed from Nouveau to Solution proposée
  • Assignee set to Frédéric Péters

Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :

#2

Updated by Robot Gitea 7 days ago

  • Status changed from Solution proposée to Solution validée

Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :

#3

Updated by Robot Gitea 2 days ago

  • Status changed from Solution validée to Résolu (à déployer)

Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :

Also available in: Atom PDF