Sorry Jason,

That was an ugly work-around.  This works better:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" height="50%" backgroundColor="0xFF0000">
<mx:VBox height="100%" width="{Application.application.width}"
backgroundColor="0x00FF00">

-TH

--- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> Here's a work-around:
>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> layout="vertical" width="100%" height="50%"
> backgroundColor="0xFF0000"
> paddingBottom="0" paddingTop="0"
> paddingLeft="-8" paddingRight="-8">
>
> Pretty ugly though,
> -TH
>
> --- In [email protected], "Jason" jep1975@ wrote:
> >
> > Sorry, change that grid height to 90%. Still the same bug, but at
> > least it all adds to 100% now!
> >
> > It seems that any % other than 100% for the application height
> causes
> > this. Absolute numbers work, too. I wonder, should I even
> specifying
> > app height/width? It seems if I leave this off it assumes 100%
> anyway.
> >
> > --- In [email protected], "Jason" <jep1975@> wrote:
> > >
> > > Using the following code, the initial load of the app shows a
> little
> > > dead area to the right side of the screen. As soon as you
> resize the
> > > browser window, it fixes and flows correctly.
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> > > layout="absolute" width="100%" height="50%"
> backgroundColor="0xFF0000">
> > > <mx:VBox height="100%" width="100%" backgroundColor="0x00FF00">
> > > <mx:Button label="Print" width="100%" height="5%"/>
> > > <mx:DataGrid width="100%" height="95%"
> backgroundColor="0x0000FF">
> > > <mx:dataProvider>
> > > <mx:ArrayCollection>
> > > <mx:source>
> > > <mx:Object>
> > > <mx:Artist>Pavement</mx:Artist>
> > > <mx:Price>11.99</mx:Price>
> > > <mx:Album>Slanted and
> Enchanted</mx:Album>
> > > </mx:Object>
> > > <mx:Object>
> > > <mx:Artist>Pavement</mx:Artist>
> > > <mx:Album>Brighten the Corners</mx:Album>
> > > <mx:Price>11.99</mx:Price>
> > > </mx:Object>
> > > </mx:source>
> > > </mx:ArrayCollection>
> > > </mx:dataProvider>
> > > </mx:DataGrid>
> > > <mx:Button label="Empty" width="100%" height="5%"/>
> > > </mx:VBox>
> > > </mx:Application>
> > >
> >
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to