Bug? Visual Designer Border Radius

Cableguy

Expert
Licensed User
Longtime User
I post this as a BUG, but I consider this to be more of a slight slip...

When creating (Adding) a Button and then styling it using ONLY the Visual Designer Properties, I set a bunch of them...
BorderColor, BorderRadius,Shadow,etc...
And I got a button where, althout I had set a different Background Color, and a Diferent Border Color, with about 10px Corner Radius, the BackGround Basepanel (Not sure how to call it) was still visible with the default color and 0px Corner Radius.
To solve this, I had to add to the CSS:
-fx-background-radius:10

You can see this behaviour in the image below, The Left Button had the CSS line applied to it, the Right one has not...

upload_2017-10-7_17-9-16.png

upload_2017-10-7_17-14-35.png


My Logic in this BUG report is that, if the dev is setting the Border Radius value, he also wants the background to be in accordance!
This behaviour is also present in other nodes, like the TextField
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
In the left on I had to add an extra CSS line, the right one has no extra CSS...

[EDIT] Here's a simple Layout, Only one Button, Activity Background color set, Button Background Color set, Border Width, Radius and Width

upload_2017-10-8_9-48-49.png
 

Attachments

  • bug.zip
    1.8 KB · Views: 235
Last edited:
Top