smartgwt - Smart gwt window position -
how make window popup in specific location on page? don't see straightforward way of doing this, i'm using window.centerinpage()
using underlying setrect() method of canvas: canvas.setrect(int left, int top, int width, int height)
window.setrect(250, 100, 500 500);
remember redraw needed.
or, if you're using gwt window, can achieve using window.open(string url, string target, string features) method, specified here.
window.open(url, "newwindow", "left=250,top=100,width=500,height=500");
Comments
Post a Comment