On Mon, Feb 29, 2016 at 1:40 PM, Alex Harui <[email protected]> wrote:
> Om, > > Why stageWidth/stageHeight and not 8192? And won't that just stack the > StageTexts at that point? I haven't looked to deeply at this issue, but I > thought it was about scrolling a long document. Let's say you want to > caption a list of pictures that are 1000 pixels in height, the StageText > where you want to edit the caption is 20 pixels in height and you 10 of > them. In theory it should be ok to place StageTexts at y=10000, otherwise > you won't get smooth scrolling. If you force it back to 8192 or > stageHeight it will overlap something else. > > Without thinking too much about it, some sort of virtual layout would > probably be required, like the MX lists do. > > Of course, I could be wrong... > This piece of code is calculating the StageText object's global viewport rectangle wrt stage co-ordinates. Viewport is defined as: 'The area on the stage in which the StageText object is displayed. The default is the zero rect.' This viewport is used to capture a bitmap of the stagetext and replace the image the place of the stagetext object while scrolling. So, any viewport bounds that is outside the stage can be safely clipped to the bounds of the stage. Although you are right, there might be a more efficient way of doing all this. On that topic, there was another edgecase where setting the height of a TextInput to 10000 caused the same issue. I have gone ahead and added the same checks to the viewport rectangle's width and height. New commit here: https://github.com/apache/flex-sdk/commit/fd7de9f724219bff2b3096a8057fc830ccf07391 Thanks, Om > > -Alex > > On 2/29/16, 1:21 PM, "[email protected] on behalf of OmPrakash Muppirala" > <[email protected] on behalf of [email protected]> wrote: > > >Okay, I've checked in a fix. If someone can review it, it would be great: > > > > > https://github.com/apache/flex-sdk/commit/f14dc1431c1914a5e1fef6c77b67b23b > >9c41a7fd > > > >You can monkey patch your SDK with this fix, or get the Flex Nightly build > >and test out the fix. > > > >Thanks, > >Om > > > >On Mon, Feb 29, 2016 at 6:30 AM, Philip Medlam <[email protected]> > >wrote: > > > >> For information, > >> the workaround in the bug report does indeed work. > >> > >> Phil. > >> > >> On Mon, Feb 29, 2016 at 6:30 AM, npem <[email protected]> wrote: > >> > >> > OK thanks for your efforts. > >> > > >> > Hope there is a fix, but will look at the workaround suggested in the > >>bug > >> > report. > >> > > >> > Phil. > >> > > >> > On Mon, Feb 29, 2016 at 12:19 AM, OmPrakash Muppirala [via Apache Flex > >> > Users] <[email protected]> wrote: > >> > > >> > > Looks like this issue has been reported already: > >> > > https://issues.apache.org/jira/browse/FLEX-34391 > >> > > > >> > > I'm trying to check in a fix for this. > >> > > > >> > > Thanks, > >> > > Om > >> > > > >> > > On Sun, Feb 28, 2016 at 9:12 AM, OmPrakash Muppirala <[hidden email] > >> > > <http:///user/SendEmail.jtp?type=node&node=12079&i=0>> > >> > > wrote: > >> > > > >> > > > Please file a bug with small test case app that reproduces this > >> issue. > >> > > I > >> > > > will take a look at this asap. > >> > > > > >> > > > Also note which devices this bug occurs in. > >> > > > > >> > > > Thanks, > >> > > > Om > >> > > > On Feb 28, 2016 9:09 AM, "npem" <[hidden email] > >> > > <http:///user/SendEmail.jtp?type=node&node=12079&i=1>> wrote: > >> > > > > >> > > >> Thanks for the suggestion, unfortunately, this has the same > >>problem. > >> > > >> > >> > > >> Out of interest, if I use an tablet, rather than a phone, the > >> problem > >> > > does > >> > > >> not occur. > >> > > >> > >> > > >> Obviously it's "Out of Bounds" depends upon the screen height. > >> > > >> > >> > > >> Grrrr > >> > > >> > >> > > >> Phil. > >> > > >> > >> > > >> On Sun, Feb 28, 2016 at 3:23 PM, piotrz [via Apache Flex Users] < > >> > > >> [hidden email] <http:// > >> /user/SendEmail.jtp?type=node&node=12079&i=2>> > >> > > wrote: > >> > > >> > >> > > >> > Hi Phil, > >> > > >> > > >> > > >> > Maybe more suitable solution would be use DataGroup with some > >> custom > >> > > >> Item > >> > > >> > Renderers. > >> > > >> > > >> > > >> > Piotr > >> > > >> > Apache Flex PMC > >> > > >> > [hidden email] <http:// > >> > /user/SendEmail.jtp?type=node&node=12079&i=3> > >> > > >> > > >> > > >> > > >> > > >> > ------------------------------ > >> > > >> > If you reply to this email, your message will be added to the > >> > > discussion > >> > > >> > below: > >> > > >> > > >> > > >> > > >> > > >> > >> > > > >> > > >> > >> > http://apache-flex-users.2333346.n4.nabble.com/Error-2006-The-supplied-in > >>dex-is-out-of-bounds-tp12068p12076.html > >> > > >> > To unsubscribe from Error #2006: The supplied index is out of > >> > bounds, > >> > > >> click > >> > > >> > here > >> > > >> > < > >> > > >> > > >> > > >> > . > >> > > >> > NAML > >> > > >> > < > >> > > >> > >> > > > >> > > >> > >> > http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?m > >>acro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml. > >>namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble > >>.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble% > >>3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21na > >>bble%3Aemail.naml > >> > > >> > > >> > > >> > > >> > > >> > >> > > >> > >> > > >> > >> > > >> -- > >> > > >> Philip Medlam > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> -- > >> > > >> View this message in context: > >> > > >> > >> > > > >> > > >> > >> > http://apache-flex-users.2333346.n4.nabble.com/Error-2006-The-supplied-in > >>dex-is-out-of-bounds-tp12068p12077.html > >> > > >> Sent from the Apache Flex Users mailing list archive at > >>Nabble.com. > >> > > >> > >> > > > > >> > > > >> > > > >> > > ------------------------------ > >> > > If you reply to this email, your message will be added to the > >> discussion > >> > > below: > >> > > > >> > > > >> > > >> > >> > http://apache-flex-users.2333346.n4.nabble.com/Error-2006-The-supplied-in > >>dex-is-out-of-bounds-tp12068p12079.html > >> > > To unsubscribe from Error #2006: The supplied index is out of > >>bounds, > >> > click > >> > > here > >> > > < > >> > > >> > >> > http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?m > >>acro=unsubscribe_by_code&node=12068&code=cGhpbGlwLm1lZGxhbUBnbWFpbC5jb218 > >>MTIwNjh8OTcwMjY1NTIz > >> > > > >> > > . > >> > > NAML > >> > > < > >> > > >> > >> > http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?m > >>acro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml. > >>namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble > >>.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble% > >>3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21na > >>bble%3Aemail.naml > >> > > > >> > > > >> > > >> > > >> > > >> > -- > >> > Philip Medlam > >> > > >> > > >> > > >> > > >> > -- > >> > View this message in context: > >> > > >> > >> > http://apache-flex-users.2333346.n4.nabble.com/Error-2006-The-supplied-in > >>dex-is-out-of-bounds-tp12068p12081.html > >> > Sent from the Apache Flex Users mailing list archive at Nabble.com. > >> > > >> > >> > >> > >> -- > >> Philip Medlam > >> > >
