[
https://issues.apache.org/jira/browse/FLEX-33970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13848368#comment-13848368
]
Maurice Amsellem commented on FLEX-33970:
-----------------------------------------
First remarks on DropDownListButtonSkin.as
1) to draw the divider, which is a mere vertical line , you don't need a
shape, and layoutcontent etc...
you can directly draw on the skins graphics , in the drawBackground(...) method
(since the line is part of the background).
The code is simpler, and the result faster.
something like :
{code}
override protected function drawBackground(unscaledWidth: Number,
unscaledHeight: Number): void {
super.drawBackground(unscaledWidth, unscaledHeight);
graphics.beginFill(0x464646, 0.5);
graphics.drawRect( <computed position of divider> , < computed size
of divider> ;
graphics.endFill();
}
{code}
More remarks to come on the other classes as well...
> Improve DropDownList skin implementation (mobile)
> -------------------------------------------------
>
> Key: FLEX-33970
> URL: https://issues.apache.org/jira/browse/FLEX-33970
> Project: Apache Flex
> Issue Type: Improvement
> Components: Spark: DropDownList
> Affects Versions: Apache Flex 4.8 (parity release)
> Reporter: Lee Burrows
> Priority: Minor
> Fix For: Apache Flex 4.12.0
>
> Attachments: DropDownList Skin Test.fxp
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Mobile theme does not contain skins for DropDownList.
> Spark theme skins are designed for 72dpi screens and are unsuitable for
> mobile devices.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)