You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
java.lang.NumberFormatException when applying clip-path with percentage values #3007
When a component is off-screen and its width and height are zero, we get a java.lang.NumberFormatException when trying to calculate the percentage of the total, since the total is zero:
11-02 14:51:14.658 6351-6351/? W/System.err: java.lang.NumberFormatException: Invalid float: "3%"
11-02 14:51:14.658 6351-6351/? W/System.err: at java.lang.StringToReal.invalidReal(StringToReal.java:63)
11-02 14:51:14.658 6351-6351/? W/System.err: at java.lang.StringToReal.initialParse(StringToReal.java:164)
11-02 14:51:14.658 6351-6351/? W/System.err: at java.lang.StringToReal.parseFloat(StringToReal.java:323)
11-02 14:51:14.658 6351-6351/? W/System.err: at java.lang.Float.parseFloat(Float.java:306)
11-02 14:51:14.658 6351-6351/? W/System.err: at org.nativescript.widgets.BorderDrawable.cssValueToDevicePixels(BorderDrawable.java:414)
11-02 14:51:14.658 6351-6351/? W/System.err: at org.nativescript.widgets.BorderDrawable.drawClipPath(BorderDrawable.java:258)
11-02 14:51:14.658 6351-6351/? W/System.err: at org.nativescript.widgets.BorderDrawable.draw(BorderDrawable.java:123)
Activity
hamorphis commentedon Nov 2, 2016
Link to tns-core-modules-widgets issue: NativeScript/tns-core-modules-widgets#65
Fix: java.lang.NumberFormatException when applying clip-path with per…
lock commentedon Aug 29, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.