开发者

RootPane.get("something") with GWT Designer

开发者 https://www.devze.com 2023-01-19 08:41 出处:网络
I\'ve been working a little with GWT and I managed to do some small aplications. But now I start开发者_开发问答ed playing with GWT Designer, there is a little thing that I just couldn´t acomplish ye

I've been working a little with GWT and I managed to do some small aplications.

But now I start开发者_开发问答ed playing with GWT Designer, there is a little thing that I just couldn´t acomplish yet.

When working with standard gwt, if I want to add some control or element, I just write this:

RootPane.get("something").add(somePanel);

And gwt renders that panel inside a div with id = something.

Now, I'm doing the same with GWT Designer but it renders at the left top of the screen, I know that if i just move all the elements in the designer they will be displayed lower, but I want them rendered properly inside the div, wherever the div is located.

PS: Sorry for my bad english...


The problem was that when working with the designer the code generated was:

RootPane.get("something").add(somePanel, x, y);

So somehow that move the div to X,Y cordinates, justo to remove those cordinates and the panel will render properly inside the defined div.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号