Skip to main content

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.

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!


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?


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


[deleted]


[deleted]


[deleted]


[deleted]


Reply