Looks like TitleWindow has some issues with lists. Here's a workaround. If you want to see even more weirdness, try setting headerHeight="0" for the DataGrid in the below code.
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" title="Test">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable]
private var dp: Array = [
{label: 'Goose'}, {label: 'Dog'}, {label: 'Cat'}, {label: 'Horse'}, {label: 'Blue Bird'},
{label: 'f'}, {label: 'g'}, {label: 'h'}, {label: 'i'}, {label: 'j'}, {label: 'k'}
];
]]>
</mx:Script>
<mx:DataGrid width="100%" height="100%" dataProvider="{dp}"
headerHeight="20" alternatingItemColors="[0xFFFFFF, 0xFFFFFF]" >
<mx:columns>
<mx:DataGridColumn dataField="label" headerText="Label" />
</mx:columns>
</mx:DataGrid>
<mx:ControlBar>
<mx:Button label="Go Back" id="bGoBack" click="PopUpManager.removePopUp(this);"/>
</mx:ControlBar>
</mx:TitleWindow>
--- In [email protected], "gotgoose09" <[EMAIL PROTECTED]> wrote:
>
> Yes, you're right, I should've given some code.
>
> http://www.thegoosmans.com/flexlistintitlewindow/TitleWindowListState.sw\
> f
>
> This is a simplified version of my project. You can right click on the
> SWF and select "View Source" to see the code.
> --- In [email protected], "Tim Hoff" TimHoff@ wrote:
> >
> > If you could provide the TitleWindow code, it would be easier to see
> > what is causing the problem.
> >
> > -TH
> >
> > --- In [email protected], "gotgoose09" thegoosmans@
> > wrote:
> > >
> > > I guess no one has tried this yet?
> > > --- In [email protected], "gotgoose09" <thegoosmans@>
> > wrote:
> > > >
> > > > I have a TitleWindow that has a List with cfm pages in it as
> > items. The
> > > > TitleWindow also has a state that adds TextField to create or
> > edit a
> > > > list item. The first time I popup this TitleWindow and there
> > are more
> > > > items than the List's height, a strange display issue occurs.
> > You can
> > > > see it here:
> > > > http://img102.imageshack.us/my.php?
> > image=titlewindowlistbugsm2.jpg
> > > > Notice the white bar on the top of the List.
> > > >
> > > > Now, when I click the create button I go to another state -->
> > > >
> > http://img60.imageshack.us/img60/3317/titlewindowlistbug2vs4.jpg .
> > If I
> > > > now scroll through the list the display issue in the previous
> > image does
> > > > not occur, even after I cancel out of that state.
> > > >
> > > > Anyone have a solution to this?
> > > >
> > >
> >
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

