Maximize button no longer works

It seems like in the last week, the maximize button stopped working. Here is a simple example:

public class Test implements EntryPoint {
	public Test() {
		
	}
	
	public void onModuleLoad() {
		Canvas canvas = new Canvas();
		canvas.setWidth100();
		canvas.setHeight100();
		canvas.addChild(getCanvas());
		if (!GWT.isScript()) {
		    KeyIdentifier debugKey = new KeyIdentifier();
		    debugKey.setCtrlKey(true);
		    debugKey.setKeyName("D");

		    Page.registerKey(debugKey, new KeyCallback() {
		        public void execute(String keyName) {
		            SC.showConsole();
		        }
		    });
		}
		canvas.draw();
	}
	
	private Canvas getCanvas() {
		Window w = new Window();
		w.setShowMaximizeButton(true);
		w.setTitle("test");
		w.setWidth(300);
		w.setHeight(300);
		return w;
	}
}

In the debugger you get

14:15:57.814:MDN4:DEBUG:EventHandler:Event 'mouseStillDown' bubbled to top
14:15:57.830:MUP5:INFO:EventHandler:Target Canvas for event 'mouseup': [ImgButton ID:isc_OID_1_maximizeButton]
14:15:57.845:MUP5:DEBUG:EventHandler:Event 'mouseUp' bubbled to top
14:15:57.845:MUP5:DEBUG:EventHandler:Bubbling for event 'click' cancelled via false return value by target: [ImgButton ID:isc_OID_1_maximizeButton]

We’ll look into it, thanks.

Fixed in SVN.

Thanks

Thanks for the quick response, Sanjiv. I don’t see it yet in the daily snapshot but that could be a timing issue.

Would you rather I report these bugs here or somewhere else?

And finally, I also notice that if you have a layout that covers the whole browser screen and maximize a window in it, the browser scrollbars appear if there is a shadow. It looks like you may not be accounting for the size of the shadow in computing the window size.

Did you update the ‘tools’ folder in SVN?

In general please post your reports here and once confirmed to be an issue, you can file an issue on the google code page.

Hi Pete,
Can you try against SVN now? I’ve updated the build.

Sanjiv

SVN update

It works now. Thanks.