TiddlyWiki5 icon indicating copy to clipboard operation
TiddlyWiki5 copied to clipboard

[BUG] innerwiki scales contents to zero size

Open ittayd opened this issue 7 months ago • 3 comments

Describe the bug

when rendering, innerwiki assumes the tiddler it is in is visible and uses the clientWidth attribute of the dom element to calculate scale. However, when using the zoomin view, this isn't true and clientWidth is therefore 0 which means the contents are scaled to 0

Expected behavior

No response

To Reproduce

  1. Go to https://clientwidth.tiddlyhost.com/
  2. Click on hello.js in the open tiddlers sidebar
  3. Edit hello.js, add a space somewhere
  4. Go to the 'Demo' tiddler (open)
  5. See that nothing is rendered. If you edit and cancel it'll be rendered as expected.

Screenshots

No response

TiddlyWiki Configuration

  • 5.3.5
  • tiddlyhost
  • innerwiki

Desktop (please complete the following information):

  • Ubuntu
  • Chrome
  • latest

Additional context

No response

ittayd avatar Jul 14 '24 10:07 ittayd