1 Reply Latest reply on Apr 27, 2011 6:40 AM by chenapp

    HTMLLoader dimension problem on Mac

    chenapp

      We are in the process to launch an AIR based HTML rapid prototyping tool. Things went relatively smoothly during private beta and it had been tested on both PC and Mac. Recently we got one bug report from a user on Mac Pro. The user has latest AIR runtime and the installation went through with no issues. When the applicaiton was launched, however, every container seemed to have scrollbars and they streched way too long (See the attched image). The application has been tested on various Mac machines and we haven't seen something like this. After some struggle, we got a stack trace like following:

       

      ArgumentError: Invalid HTMLLoader dimensions. width = 9723, height = 0
             at flash.html::HTMLLoader/validateNewDimensions()
             at flash.html::HTMLLoader/set width()
             at mx.controls::HTML/updateDisplayList()
             at mx.core::UIComponent/validateDisplayList()
             at mx.managers::LayoutManager/validateClient()
             at mx.core::UIComponent/validateNow()
             at mx.core::WindowedApplication/window_resizeHandler()
             at flash.display::Stage/set stageWidth()
             at mx.core::WindowedApplication/commitProperties()
             at mx.core::UIComponent/validateProperties()
             at mx.managers::LayoutManager/validateProperties()
             at mx.managers::LayoutManager/doPhasedInstantiation()
             at mx.managers::LayoutManager/doPhasedInstantiationCallback()

       

      In our code we don't set the HTMLLoader to any specific dimensions. It's held in tab container with both its width and height set to 100% of the container. Does anyone run into similar problem or know a way around it? We are kind of stuck since things working fine on those Mac that we have access to. We can't run step by step debugging on the user's machine. Any suggestion greatly appreciated.

       

      Or if you are running Mac, can you try and see if you can run our applicaiton? It's available for download at http://www.appsketcher.com/download/  . Thanks.

       

      app-sketcher.png