sean-perkins / nativescript-animated-circle

NativeScript plugin for animated progress borders on circles.
Apache License 2.0
13 stars 11 forks source link

Can't resize text #9

Closed FranciZ closed 5 years ago

FranciZ commented 6 years ago

Which platform(s) does your issue occur on?

Android, Pixel XL 2

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

I did a custom layout setup to get around this one but if you use the text property on the component I cant change the text size. It's huge and gets clipped.

slasho commented 6 years ago

+1

alexZaicev commented 5 years ago

I experience the same issue. I have installed the latest version from npm, and the text size is static and cannot be changed by changing textSize property.

Any suggestions on how to fix the issue?

Macarthurval commented 5 years ago

I've found the problem, at file animated-circle.android.js , change the line 182:

this.android.setTextSize(this.textSize); by this.android.setTextSize(this._textSize);

After this change you need to do tns run android --syncAllFiles to update the file.

alexZaicev commented 5 years ago

Thank you that fixed my problem!!! Can this fix be pushed into the plugin, so others would not experience that issue?