mesaglam / mad-components

Automatically exported from code.google.com/p/mad-components
0 stars 0 forks source link

UIFastDataGrid without title #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create UIFastDataGrid wthout <title> tag:
    <fastDataGrid id="myList" alignH="fill" alignV="fill">
    </fastDataGrid>
2. add data
3. get error:
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at com.danielfreeman.extendedMadness::UIFastDataGrid/drawBackground()[E:\Workspaces\msw\mysalesworldapp\madComponents\ExtendedMadnessLib\src\com\danielfreeman\extendedMadness\UIFastDataGrid.as:324]
    at com.danielfreeman.extendedMadness::UIFastDataGrid/doLayout()[E:\Workspaces\msw\mysalesworldapp\madComponents\ExtendedMadnessLib\src\com\danielfreeman\extendedMadness\UIFastDataGrid.as:519]
    at com.danielfreeman.extendedMadness::UIFastDataGrid/setData()[E:\Workspaces\msw\mysalesworldapp\madComponents\ExtendedMadnessLib\src\com\danielfreeman\extendedMadness\UIFastDataGrid.as:647]
(...)

What is the expected output? What do you see instead?
UIFastDataGrid displayed correctly wihout title bar

What version of the product are you using? On what operating system?
trunk

Please provide any additional information below.
Porobably it would be enough to add:
if(_title != null)
in UIFastDataGrid.as line 324 

Original issue reported on code.google.com by marcin.s...@gmail.com on 29 Apr 2014 at 9:17