You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Vitaliy Parfenov (JIRA)" <ji...@apache.org> on 2014/07/14 13:50:05 UTC

[jira] [Commented] (FLEX-25146) Flex tree scrollong problems with lrger item renderer

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

Vitaliy Parfenov commented on FLEX-25146:
-----------------------------------------

The problem appears here: mx.controls.List.as:987-988

iterator.bookmark returns "new CursorBookmark(currentIndex.toString());" (from "mx.controls.treeClasses.HierarchicalViewCursor.as:200")
and then we get viewIndex from CursorBookmark which always is "-1".

HierarchicalViewCursor needs to another realization of CursorBookmark or another way to get rowIndex. 

Then with -1 it will try jump to top of tree ( Math.max(rowIndex - lockedRowCount, 0) returns 0) and there can be another count of visible elements in current view of tree (variableRowHeight enabled) and will issue error (TypeError: Error #1010: A term is undefined and has no properties.) later at mx.controls.List.as:1051

Possible fix (works for mx:Tree with variableRowHeight):
List.as: 987-988 replace with:
    var rowIndex:int = (iterator is HierarchicalViewCursor)
                    ? HierarchicalViewCursor(iterator).index
                    : iterator.bookmark.getViewIndex();

> Flex tree scrollong problems with lrger  item renderer
> ------------------------------------------------------
>
>                 Key: FLEX-25146
>                 URL: https://issues.apache.org/jira/browse/FLEX-25146
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: Tree
>    Affects Versions: Adobe Flex SDK 4.0 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>
> Steps to reproduce:
>  Open the applicaltion,This contans flex tree withe MXTreeItemrenderer of variableRowHeight .open the last tree branch(use 1280 X 1024 resolution).
>  
>  Actual Results:
> 1.  When i open the tree last node and  trying to scroll down last item , unable to reach last item and some times scroll thumb is  coming out of list and adjusting some other branch in tree.
>  and working fine with varibale rowheight = false;
> 2.   if itemrenderer  height is large if you open tree with mouse wheel scrolling , or  scroll down to bottom before branch completely expanded produces an exception.
> TypeError: Error #1010: A term is undefined and has no properties.
>                 at mx.controls::List/adjustVerticalScrollPositionDownward()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\List.as:1042]
>                 at mx.controls::List/configureScrollBars()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\List.as:987]
>                 at mx.controls::List/scrollHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\List.as:1626]
>                 at mx.controls::Tree/scrollHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\Tree.as:2893]
>                 at flash.events::EventDispatcher/dispatchEventFunction()
>                 at flash.events::EventDispatcher/dispatchEvent()
>                 at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266]
>                 at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\scrollClasses\ScrollBar.as:1438]
>                 at mx.controls.scrollClasses::ScrollThumb/mouseMoveHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\scrollClasses\ScrollThumb.as:216]
>  Thank you.
> Regards
> Shashidhar



--
This message was sent by Atlassian JIRA
(v6.2#6252)