Change radius property to diameter for ellipses.

This commit is contained in:
Ghazi Triki 2017-03-09 15:16:24 +01:00
parent 119338aff3
commit 8c17ebe325
3 changed files with 6 additions and 7 deletions

View File

@ -84,7 +84,7 @@
.sendButton {
borderWeight : 2;
radius : 40;
diameter : 40;
}
.titleLabel {
@ -119,7 +119,7 @@
}
.participantIcon {
radius : 44;
diameter : 44;
fontSize : 18;
circleStroke : 2;
}

View File

@ -13,7 +13,7 @@
<fx:Script>
<![CDATA[
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
border.width = border.height = getStyle("radius");
border.width = border.height = getStyle("diameter");
borderStroke.color = getStyle("borderColor");
borderStroke.weight = getStyle("borderWeight");

View File

@ -8,11 +8,10 @@
override protected function updateDisplayList(w:Number, h:Number):void {
super.updateDisplayList(w, h);
circle.height = getStyle('radius');
circle.width = getStyle('radius');
circle.width = circle.height = getStyle("diameter");
circleColor.color = getStyle('circleColor');
circleColor.weight = getStyle('circleStroke');
circleColor.color = getStyle("circleColor");
circleColor.weight = getStyle("circleStroke");
}
public function set displayInitials(initials:String):void {