Thursday, 18 August 2011

Smart GWT– Canvas hiding other elements underneath it

Recently when I used Canvas to hold a popup positioned somewhere in the middle, the Canvas was starting from the top left corner of the screen and hiding other elements underneath it. It was really difficult to find how I can position Canvas so that it occupies just the widgets space and not any extra space.

This can be achieved using Canvas.setRect(left, top, width, height);

No comments:

Post a Comment