flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34391) ScrollableStageText with large y value crashes app
Date Mon, 07 Jul 2014 07:48:35 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Justin Mclean updated FLEX-34391:

    Labels: ScrollableStageText easytest  (was: ScrollableStageText)

> ScrollableStageText with large y value crashes app
> --------------------------------------------------
>                 Key: FLEX-34391
>                 URL: https://issues.apache.org/jira/browse/FLEX-34391
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Mobile: ScrollableStageText
>    Affects Versions: Apache Flex 4.12.1
>         Environment: All
>            Reporter: Colin Childs
>            Priority: Critical
>              Labels: ScrollableStageText, easytest
>         Attachments: ScrollableStageTextTest.fxp
> When calculating the global viewport during the initial layout of a ScrollableStageText
component, the y value can exceed the maximum allowed y value of StageText, causing the app
to crash. The exact y value required to crash it varies based on scale, but globally, 8192
is the breaking point. This became an issue for me when placing user generated content with
text inputs within a scroller.
> To replicate:
> 1) Create a new application
> 2) Place a TextInput control inside the view with a large y value (~10,000)
> 3) Run the app and see it crash
> I have included a sample mobile application that demonstrates this issue and a workaround
I used to fix it. As a workaround, I extend ScrollableStageText and override getGlobalViewPort,
setting the y value to the min of the globalRect.y and stage.stageHeight, and the same for
the x value as well.

This message was sent by Atlassian JIRA

View raw message