therabbitwindfall / flash-console

Automatically exported from code.google.com/p/flash-console
0 stars 0 forks source link

Error when resizing the console beyond window bounds #104

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open the console in an AIR application which uses a spark.components.Window
2. Dragging the resized outside the windows size and release mouse button
3. notice the error message when running the application via ADL

What is the expected output? What do you see instead?
I would expect, that you cant resize over the bounds of the window (collision 
detection with window width) or at least dont show an error. this could cause a 
deployed application to crash after a while and not using the ADL.
Error:
<snip>TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
    at com.junkbyte.console.view::ConsolePanel/getSnapOf()[M:\Projects\console\trunk\src\com\junkbyte\console\view\ConsolePanel.as:272]
    at com.junkbyte.console.view::ConsolePanel/returnSnappedFor()[M:\Projects\console\trunk\src\com\junkbyte\console\view\ConsolePanel.as:268]
    at com.junkbyte.console.view::ConsolePanel/updateScale()[M:\Projects\console\trunk\src\com\junkbyte\console\view\ConsolePanel.as:229]
    at com.junkbyte.console.view::ConsolePanel/onScalerMouseUp()[M:\Projects\console\trunk\src\com\junkbyte\console\view\ConsolePanel.as:245] </snip>

What version of the product are you using? On what operating system?
Console v2.52 build 593. Desktop WIN 11,1,102,58.

Please provide any additional information below.
Great work so far :)

Original issue reported on code.google.com by m...@mediensurfer.de on 6 Mar 2012 at 9:15

GoogleCodeExporter commented 8 years ago

Original comment by luay...@gmail.com on 25 Mar 2012 at 11:42