PDA

View Full Version : Border Radius not working for Container



fennecFox
14 Apr 2014, 9:21 AM
Can anyone see why the border-radius does not work? (I'm using Chrome)




Ext.define('MyComponent', {

extend: 'Ext.container.Container',

style: {

borderStyle: 'solid',
borderColor: 'red',
borderRadius: 30

},

border: 5

});

evandropoa
14 Apr 2014, 7:40 PM
Try using this:

style: "border: 5px solid red;border-radius: 10px; webkit-border-radius: 10px; -moz-border-radius: 10px;"

fennecFox
15 Apr 2014, 2:34 AM
Thank you very much, that worked!!

I guess I missed out the 'px' and proper border style