flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Childs (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34391) ScrollableStageText with large y value crashes app
Date Tue, 01 Jul 2014 17:00:29 GMT
Colin Childs created FLEX-34391:

             Summary: 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
         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