-
Notifications
You must be signed in to change notification settings - Fork 0
/
_ButtonBarStyle.as
38 lines (34 loc) · 1001 Bytes
/
_ButtonBarStyle.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package
{
import mx.core.IFlexModuleFactory;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
public class _ButtonBarStyle
{
public function _ButtonBarStyle()
{
super();
}
public static function init(param1:IFlexModuleFactory) : void
{
var fbs:IFlexModuleFactory = param1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ButtonBar");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("ButtonBar",style,false);
}
if(style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.textAlign = "center";
this.horizontalAlign = "center";
this.verticalAlign = "middle";
this.verticalGap = 0;
this.horizontalGap = 0;
};
}
}
}
}