Ya I encountered this as well a few weeks ago. There's a bug in ScrollableStageText that blows out the layout algorithm. It's trying to set the viewPort Rectangle of a stageText to a value that's greater than 8192px wide.
I don't think there's a bug filed for this so please file one if you have time. As a workaround (until the bug is fixed) give the group a maxWidth of something less than 8192px to prevent the textInputs from expanding outside the 8192px bounds. On Sat, Feb 27, 2016 at 4:51 AM, npem <philip.med...@gmail.com> wrote: > Hi, I'm coding an Air Mobile application > (Flex SDK 4.14.1, AIR SDK 16.0.0.292) > > I have encountered a problem when adding elements to a VGroup > > eg > * <s:VGroup> > <s:TextInput width="250" height="190" text="One"/> > <s:TextInput width="250" height="190" text="Two"/> > </s:VGroup>* > > This is fine, but when I add a larger number of TextInputs > (26 on the Android phone I am testing on) > I get the error below > > (Note that this is a test to reproduce the error with a more complex > project) > > Is there a workaround for this? > > Thanks in advance, > > Phil > > > > * > [Fault] exception, information=ArgumentError: Error #2006: The supplied > index is out of bounds. > at flash.text::StageText/set viewPort() > at > > spark.components.supportClasses::ScrollableStageText/updateViewPort()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as:1650] > at > > spark.components.supportClasses::ScrollableStageText/commitProperties()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as:1356] > at > > mx.core::UIComponent/validateProperties()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:8751] > at > > mx.managers::LayoutManager/validateProperties()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:605] > at > > mx.managers::LayoutManager/doPhasedInstantiation()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:821] > at > > mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188] > * > > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/Error-2006-The-supplied-index-is-out-of-bounds-tp12068.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. >