[转]NumericStepper添加百分号
了拉右的空白 % 用
- ...
- ? ?? ???override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
- ? ?? ???{
- ? ?? ?? ?? ?if (getStyle("borderVisible") == true)
- ? ?? ?? ?? ?{
- ? ?? ?? ?? ?? ? border.visible = true;
- ? ?? ?? ?? ?? ? shadow.visible = true;
- ? ?? ?? ?? ?? ? background.left = background.top = background.right = background.bottom = 1;
- ? ?? ?? ?? ?? ? textDisplay.left = textDisplay.top = textDisplay.right = textDisplay.bottom = 1;
- ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? textDisplay.right = 14 + 1;
- ? ?? ?? ?? ?}
- ? ?? ?? ?? ?else
- ? ?? ?? ?? ?{
- ? ?? ?? ?? ?? ? border.visible = false;
- ? ?? ?? ?? ?? ? shadow.visible = false;
- ? ?? ?? ?? ?? ? background.left = background.top = background.right = background.bottom = 0;
- ? ?? ?? ?? ?? ? textDisplay.left = textDisplay.top = textDisplay.right = textDisplay.bottom = 0;
- ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? textDisplay.right = 10;
- ? ?? ?? ?? ?}
- ? ?? ?? ?? ?
- ? ?? ?? ?? ?borderStroke.color = getStyle("borderColor");
- ? ?? ?? ?? ?borderStroke.alpha = getStyle("borderAlpha");
- ? ?? ?? ?? ?
- ? ?? ?? ?? ?super.updateDisplayList(unscaledWidth, unscaledHeight);
- ? ?? ???}
- ....