achuanle / umlet

Automatically exported from code.google.com/p/umlet
0 stars 0 forks source link

Calculating text width #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey! I'm trying to use the code to have calculated width that is shown here 
(http://www.umlet.com/ce/ce.htm) but the system tells me that te function 
width(textline) is invalid. What function can I use insted?

Thanks in advance.

Original issue reported on code.google.com by jko...@gmail.com on 21 Aug 2014 at 3:56

GoogleCodeExporter commented 9 years ago
unfortunately a boolean parameter has been added because of specific zoom 
handling

as a workaround you can use the method with a second boolean parameter set to 
"false":
textWidth("text",false)

the method will work again without the secondparameter in the next release

fixed in r1176

Original comment by AFDiaX on 21 Aug 2014 at 7:43