Samsung / cordova-plugin-toast

Cordova plugin that provides TV Specific functionalities.
Apache License 2.0
121 stars 60 forks source link

Unable to pass string parameter on toast.tvwindow.show #63

Open matheusrufca opened 7 years ago

matheusrufca commented 7 years ago

Hi folks, There is a type verification that only support integers when calling toast.tvwindow.show.

So if I have this code would not work on TOAST:

var rect =   ['50%', '50%', '50%', '540px']
tizen.tvwindow.show(function() {}, function() {}, rect, 'MAIN');

toast.tvwindow.show should be able to allow string to indicate units or even accept an integer on a string ('0').

pwsses commented 7 years ago

Hi thanks for your comment and suggestion. TOAST API spec is a bit defferent from tizen. Unfortunately, toast.tvwinodw.show do not currently support string. It only support number units parameter and display with pixel(px) in screen.

We will consider support it.

Thank you for reading.