flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mihai Chira (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-28291) Linear Vector Layout on the ComboBox
Date Wed, 03 Sep 2014 09:41:52 GMT

    [ https://issues.apache.org/jira/browse/FLEX-28291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14119693#comment-14119693
] 

Mihai Chira edited comment on FLEX-28291 at 9/3/14 9:41 AM:
------------------------------------------------------------

I attached a project which can reproduce a version of this bug (error pasted below). The code
is not very intuitive. Plus, I know for sure that it can be reproduced through normal interaction
with the ComboBox (and probably very unlikely timings of collection refresh() calls) because
we have it reported as a bug from two of our users. But this is the only way I could find
to reproduce it in a test project in a way that's vaguely realistic (i.e. it's very unlikely
that the user will type exactly in the right frame, and that the developer will have a listener
to UPDATE_COMPLETE on the ComboBox).

{code}
RangeError: Error #1125: The index 0 is out of range 0.
	at spark.layouts.supportClasses::LinearLayoutVector/getMajorSize()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as:428]
	at spark.layouts.supportClasses::LinearLayoutVector/getBounds()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as:1120]
	at spark.layouts::VerticalLayout/getElementBounds()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as:915]
	at spark.layouts.supportClasses::LayoutBase/http://www.adobe.com/2006/flex/mx/internal::getScrollPositionDeltaToElementHelper()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as:1485]
	at spark.layouts.supportClasses::LayoutBase/getScrollPositionDeltaToElement()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as:1465]
	at spark.components::List/ensureIndexIsVisible()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/List.as:2561]
	at spark.components::List/ensureCaretVisibility()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/List.as:1421]
	at Function/<anonymous>()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/List.as:1484]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/core/UIComponent.as:13682]
	at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:852]
	at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]
{code}


was (Author: evolverine):
I attached a project which can reproduce a version of this bug (error pasted below). I know
for sure that it can be reproduced through normal interaction with the ComboBox (and probably
very unlikely timings of collection refresh() calls) because we got it as a bug report from
two of our users. But this is the only way I could find to reproduce it in a test project
in a way that's vaguely realistic (i.e. it's very unlikely that the user will type exactly
in the right frame, and that the developer will have a listener to UPDATE_COMPLETE on the
ComboBox).

{code}
RangeError: Error #1125: The index 0 is out of range 0.
	at spark.layouts.supportClasses::LinearLayoutVector/getMajorSize()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as:428]
	at spark.layouts.supportClasses::LinearLayoutVector/getBounds()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as:1120]
	at spark.layouts::VerticalLayout/getElementBounds()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as:915]
	at spark.layouts.supportClasses::LayoutBase/http://www.adobe.com/2006/flex/mx/internal::getScrollPositionDeltaToElementHelper()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as:1485]
	at spark.layouts.supportClasses::LayoutBase/getScrollPositionDeltaToElement()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as:1465]
	at spark.components::List/ensureIndexIsVisible()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/List.as:2561]
	at spark.components::List/ensureCaretVisibility()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/List.as:1421]
	at Function/<anonymous>()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/List.as:1484]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/core/UIComponent.as:13682]
	at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:852]
	at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]
{code}

> Linear Vector Layout on the ComboBox
> ------------------------------------
>
>                 Key: FLEX-28291
>                 URL: https://issues.apache.org/jira/browse/FLEX-28291
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: ComboBox
>    Affects Versions: Adobe Flex SDK 4.5 (Release)
>         Environment: Affected OS(s): Windows
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Mihai Chira
>         Attachments: FLEX-28291.fxp
>
>
> I'm not quite sure how to reproduce it yet, but here is the stacktrace:
> RangeError: Error #1125: The index 0 is out of range 0.
> 	at spark.layouts.supportClasses::LinearLayoutVector/getMajorSize()[E:\dev\hero_private\frameworks\projects\spark\src\spark\layouts\supportClasses\LinearLayoutVector.as:420]
> 	at spark.layouts.supportClasses::LinearLayoutVector/getBounds()[E:\dev\hero_private\frameworks\projects\spark\src\spark\layouts\supportClasses\LinearLayoutVector.as:1112]
> 	at spark.layouts::VerticalLayout/getElementBounds()[E:\dev\hero_private\frameworks\projects\spark\src\spark\layouts\VerticalLayout.as:888]
> 	at spark.layouts.supportClasses::LayoutBase/http://www.adobe.com/2006/flex/mx/internal::getScrollPositionDeltaToElementHelper()[E:\dev\hero_private\frameworks\projects\spark\src\spark\layouts\supportClasses\LayoutBase.as:1477]
> 	at spark.components.supportClasses::DropDownListBase/http://www.adobe.com/2006/flex/mx/internal::positionIndexInView()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\DropDownListBase.as:660]
> 	at spark.components.supportClasses::DropDownListBase/http://www.adobe.com/2006/flex/mx/internal::changeHighlightedSelection()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\DropDownListBase.as:638]
> 	at spark.components::ComboBox/processInputField()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\ComboBox.as:609]
> 	at spark.components::ComboBox/textInput_changeHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\ComboBox.as:1060]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
> 	at spark.components.supportClasses::SkinnableTextBase/textDisplay_changeHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableTextBase.as:2240]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
> 	at spark.components::RichEditableText/textContainerManager_flowOperationCompleteHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\RichEditableText.as:4808]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at flashx.textLayout.container::TextContainerManager/dispatchEvent()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1553]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at flashx.textLayout.elements::TextFlow/dispatchEvent()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\TextFlow.as:859]
> 	at flashx.textLayout.edit::EditManager/finalizeDo()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:669]
> 	at flashx.textLayout.edit::EditManager/doOperation()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:613]
> 	at flashx.textLayout.edit::EditManager/deletePreviousCharacter()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:1378]
> 	at flashx.textLayout.edit::EditManager/keyDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:362]
> 	at flashx.textLayout.container::ContainerController/keyDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:2449]
> 	at flashx.textLayout.container::TextContainerManager/keyDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1844]
> 	at spark.components.supportClasses::RichEditableTextContainerManager/keyDownHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\RichEditableTextContainerManager.as:638]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message