[
https://issues.apache.org/jira/browse/FLEX-34107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13909743#comment-13909743
]
Maurice Amsellem edited comment on FLEX-34107 at 2/24/14 11:28 PM:
-------------------------------------------------------------------
h4. Explanation of the issue:
There are two statements that draw the colored background rect in
LabelItemRenderer:
1) opaqueBackground property draws a colored background on the whole
DisplayObject boundingBox to speed up scrolling (no transparency).
there is no parameters, and the drawing is performed by AIR.
2) The background is also drawn using drawRect(), for mouse hit purposes.
This one is drawn on rect (0,0,unscaledWidth,unscaledHeight), and is OK.
The problem is that opaqueBackground paints a zone on top of the text, which
overflow the itemRenderer bounds, and that's what covers the separators.
The fix would consist in disabling opaqueBackground, if it does not degrade
performance.
Performance testing:
I have tested rendering with and without opaqueBackground option:
config: iPad3 retina, renderMode=gpu, iOS packaging = slow
test app: displays a full screen list with 200 item, scrolling the items, and
measuring FPS.
result: no noticeable difference.
was (Author: mamsellem):
h4. Explanation of the issue:
There are two statements that draw the colored background rect in
LabelItemRenderer:
1) opaqueBackground property draws a colored background on the whole
DisplayObject boundingBox to speed up scrolling (no transparency).
there is no parameters, and the drawing is performed by AIR.
2) The background is also drawn using drawRect(), for mouse hit purposes.
This one is drawn on rect (0,0,unscaledWidth,unscaledHeight), and is OK.
The problem is that opaqueBackground paints a zone on top of the text, which
overflow the itemRenderer bounds, and that's what covers the separators.
The fix would consist in disabling opaqueBackground, if it does not degrade
performance.
> IconItemRenderer separators disappear when using a large font
> -------------------------------------------------------------
>
> Key: FLEX-34107
> URL: https://issues.apache.org/jira/browse/FLEX-34107
> Project: Apache Flex
> Issue Type: Bug
> Affects Versions: Apache Flex 4.12.0
> Environment: iOS6
> Reporter: Piotr Zarzycki
> Assignee: Maurice Amsellem
> Attachments: 05_before_fix_font_16_debug_colors.jpg,
> 05_before_for_for_fonts50_debug_colors.jpg, 06_fix_font_16_debug_colors.jpg,
> 06_fix_for_small_fonts_debug_colors.jpg,
> 07_fix_useOpaqueBackground_font_50px.jpg, ListShiftedbackground.png,
> List_noOpaqueBackground_OK.png, TestSparkList.zip,
> fix_font_50_debug_colors.jpg
>
>
> I have two spark List one with IconItemRenderer and the second with
> LabelItemRenderer.
> List with IconItemRenderer doesn't display line separators on iPad 2 iOS6. It
> also occurs on iPhone and iPad Intellij IDEA emulators.
> Screens from iPhone emulator:
> List with IconItemRenderer:
> http://images.devs-on.net/Image/BrIaFWuM0ZUleDJY-Obszar.png
> List with LabeItemRenderer:
> http://images.devs-on.net/Image/xc4qWv4cdxzcdrLX-Obszar.png
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)