Skip to main content

Bug: Created text widget's height is incorrect

  • November 16, 2021
  • 7 replies
  • 97 views

When I use the miro rest api to create a text widget, the height is not set correctly:

 


However, editing the text as a user - such as entering edit mode, or selecting and then bolding, corrects it:

 



Using the miro sdk (not api) to update a text’s width, bold, or even just select it does not fix it either - only doing a user action

Any ideas of a possible fix?

Also of note: padding seems to break behaviour entirely, with inconsistent width and wrappings even between refreshes.

Was it helpful?

7 replies

Addison Schultz
Mironeer

Hi cloutsocks, 

 

Thanks for bringing this up. We’ve seen similar comments around this in the past, but wanted to share a different thread with you that might shed some light on things: https://community.miro.com/developer-platform-and-apis-57/text-widget-width-attribute-multiple-occurances-5173
 

We’re looking into improvements we can make around this area, hopefully we can implement some soon!


  • Author
  • Beginner
  • 3 replies
  • December 12, 2021

I don’t think that’s related. Any amount of height, no matter how absurd, is not applied whatsoever. So it’s not a conversion issue or a restriction of line height.

 

Even leaving the height out produces the overhang effect, so it’s more likely a bug rather than an implementation detail, right?


  • Author
  • Beginner
  • 3 replies
  • December 12, 2021

(For what it’s worth, we ended up just using shapes to bypass the bug)


  • 0 replies
  • April 4, 2022

[deleted]


  • 0 replies
  • April 4, 2022

[deleted]


  • 0 replies
  • April 4, 2022

[deleted]


  • 0 replies
  • April 4, 2022

[deleted]


Reply