I've been trying to center a Flex application in a browser, while
keeping the application's left edge always in view (when the browser's
window narrows).  The only way I've found to do this is to set
minWidth and minHeight in <mx:Application> to the values of the width
and height of the <mx:Canvas> child.

This accomplishes my goal, BUT scroll bars do not always appear, and
the user does not have access to the entire canvas if the browser
window is small.  

Here's some sample code.  What am I doing wrong?  How can I center an
app, keep the left edge in view and get scroll bars to appear?

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
    layout="absolute" minWidth="800" minHeight="600" >

    <mx:Canvas width="800" height="600" horizontalCenter="0"
        backgroundColor="white">
        <mx:Text text="top/left corner"/>
    </mx:Canvas>
   
</mx:Application>


Reply via email to