obsidian-tracker icon indicating copy to clipboard operation
obsidian-tracker copied to clipboard

fitPanelWidth resets in month view

Open joshtownley opened this issue 1 year ago • 1 comments

I've noticed that when setting fitPanelWidth: true on a calendar view, it resets to the default size/width when clicking on any of the buttons at the top to go to previous, current of next month. Switching between edit/view mode does not fix the problem, but closing and reopening the note, or reloading Obsidian does. Using Obsidian 1.0.3 on Mac OS 13.0

joshtownley avatar Oct 31 '22 01:10 joshtownley

I noticed that when navigating to other months using the arrows, the svg element is set with static width and height, which is different from the first render, where the svg element is set with viewBox and preserveAspectRatio attributes.

Could we unify the rendering behavior to always include the viewBox and preserveAspectRatio attributes?

paulequilibrio avatar Mar 30 '24 14:03 paulequilibrio