flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice Amsellem (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33992) Zero division at Grid.as setters for horizontalScrollPosition and verticalScrollPosition
Date Mon, 16 Dec 2013 10:05:07 GMT

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

Maurice Amsellem commented on FLEX-33992:
-----------------------------------------

I fixed the same bug in verticalScrollPosition, but forgot to do it in horizontalScrollPosition.
Sorry for that, and thanks for doing it

> Zero division at Grid.as setters for horizontalScrollPosition and verticalScrollPosition
> ----------------------------------------------------------------------------------------
>
>                 Key: FLEX-33992
>                 URL: https://issues.apache.org/jira/browse/FLEX-33992
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.10.0
>            Reporter: Andrey Gorbatov
>            Assignee: Justin Mclean
>              Labels: easyfix, easytest
>             Fix For: Apache Flex 4.12.0
>
>
> See 
> override public function set horizontalScrollPosition(value:Number):void at spark Grid.as
line 735:
> const gridMaxHSP:Number = contentWidth - width;
> gridMaxHSP may be zero. And later 
> const hsp:Number = (centerMaxHSP / gridMaxHSP) * value;
> After zero division hsp is NaN and DataGrid content dissappears.
> The same thing is for verticalScrollPosition setter.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message