obsidian-advanced-canvas icon indicating copy to clipboard operation
obsidian-advanced-canvas copied to clipboard

[BUG] Auto-resize does not work with 'center' text alignment

Open Ulugbeg opened this issue 1 week ago • 0 comments

Repro steps:

  • ensure auto-resize is enabled.
  • add a new node to a canvas
  • ensure text alignment is center
  • ensure auto-resize is enabled for the node
  • add multiple lines to the node so the node extends downwards
  • exit the node by clicking on the canvas.
  • observe the node is now resized to the original, minimal size, not displaying all the entered text.
  • change the text-alignment to either left or right
  • click on the node and then on the canvas a few times (sometimes needed)
  • observe that the node now is resized to contain all text.

Changing the text alignment back to center breaks the node again.

Image

Ulugbeg avatar Nov 21 '25 12:11 Ulugbeg