You are setting the min. size on the display host in this example - you need to
set it on the host window (returned by getHostWindow(), not getDisplayHost()).
I just tried this and it seems to work fine.
On Nov 14, 2010, at 10:30 PM, ChesStrategy wrote:
>
> I've tried your solution and it does not seem to have any effect; Is it
> supposed to set the size of the Display (and enclosed Window) to 800x600 on
> startup()?
>
> I have posted the code below for reference. constructContent() simply
> returns a BoxPane filled with other stuff.
>
> Thanks,
> Dave
>
>
> private Window window;
>
> public void startup(Display arg0, Map<String, String> arg1) throws Exception
> {
> window = new Window();
>
> window.setTitle(Constants.APPTITLE);
> window.setContent(constructContent());
> window.setMaximized(true);
>
> arg0.getDisplayHost().setMinimumSize(new Dimension(800,600));
>
> window.open(arg0);
>
> }
>
>
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/Setting-a-minimum-enforced-size-for-the-Display-tp1902028p1902622.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.