MartinWittemann wrote
> Hey,
> you could use an incredible high integer value to get that done. Usually
> the browser do not care of the radius is higher than it could be.
> Regards,
> Martin
> 
> 
>> Am 27.05.2015 um 17:42 schrieb slah <

> slachtar@

> >:
>> 
>> Hello,
>> I'm trying to show an image in a circular shape like google+ do for
>> avatars,
>> etc.
>> 
>> seems I've to use CSS * border-radius: 50%;*
>> trying to use decorator for this purpose fails because 
>> *qx.ui.decoration.Decorator().setRadius()* only accepts integers and not
>> %.
>> 
>> Can someone show me how to use CSS or Decorator() to achieve this
>> purpose.
>> 
>> Regards,
>> 
>> 
>> 
>> --
> Hi Martin,
> seems that giving very high radius (1000px) did the trick:
> http://jsfiddle.net/8yse3owL/.
> So in my app, I need just to apply this decorator to any element to make
> it circular:
> var deco = new qx.ui.decoration.Decorator().set({
>                               radius : 1000, //1000 to get the rounded effect
>                       });
> myImg.setDecorator(deco);
> 
> I'll try Stephan's mixin too.
> 
> Thank you all
> 
>> View this message in context:
>> http://qooxdoo.678.n2.nabble.com/how-to-make-circular-images-
> with-decorator-CSS-tp7587190.html
>> Sent from the qooxdoo mailing list archive at Nabble.com.
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> qooxdoo-devel mailing list
>> 

> qooxdoo-devel@.sourceforge

>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list

> qooxdoo-devel@.sourceforge

> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel





--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/how-to-make-circular-images-with-decorator-CSS-tp7587190p7587193.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to