flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Scheibe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34532) Spark Label creates argument error if its width is greater than TextBlock.MAX_LINE_WIDTH
Date Tue, 09 Sep 2014 12:55:29 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexander Scheibe updated FLEX-34532:
-------------------------------------
    Description: 
If for some reasons the labels width gets very large, than the labels private function 'createTextLinesFromTextBlock'
will cause an ArgumentError in the textBlock.recreateTextLine and textBlock.createTextLine
function because the 3rd parameter 'maxLineWidth' can get larger than TextBlock.MAX_LINE_WIDTH.


The value of this parameter should be guarded with a Math.min check.

  was:
If for some reasons the labels width gets very large, than the labels private function 'createTextLinesFromTextBlock'
will cause an ArgumentError in the textBlock.recreateTextLine function because the 3rd parameter
'maxLineWidth' can get larger than TextBlock.MAX_LINE_WIDTH. 

The value of this parameter should be guarded with a Math.min check.


> Spark Label creates argument error if its width is greater than TextBlock.MAX_LINE_WIDTH
> ----------------------------------------------------------------------------------------
>
>                 Key: FLEX-34532
>                 URL: https://issues.apache.org/jira/browse/FLEX-34532
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: Label
>    Affects Versions: Apache Flex 4.13.0
>            Reporter: Alexander Scheibe
>            Priority: Minor
>
> If for some reasons the labels width gets very large, than the labels private function
'createTextLinesFromTextBlock' will cause an ArgumentError in the textBlock.recreateTextLine
and textBlock.createTextLine function because the 3rd parameter 'maxLineWidth' can get larger
than TextBlock.MAX_LINE_WIDTH. 
> The value of this parameter should be guarded with a Math.min check.



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

Mime
View raw message