Hello SGWT Team,
I 'm looking for to get position of FormItem, the situation is that I have a left navigation side window which can be collapsed and different FormItems in the midle side, so I want to catch the position (relative/absolute) in pixel, in the aim to show a little menu, on the left.
some code
is there any way to do this?
thanks in adavnce
I 'm looking for to get position of FormItem, the situation is that I have a left navigation side window which can be collapsed and different FormItems in the midle side, so I want to catch the position (relative/absolute) in pixel, in the aim to show a little menu, on the left.
some code
Code:
FormItemIcon icon;
...
public void onFormItemClick(FormItemIconClickEvent event) {
//How to get the right position of icon
menu = new Menu();
//AIM to move the menu on the right position
menu.setPageLeft(left);
menu.setPageTop(top);
menu.show();
}
thanks in adavnce
Comment