-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Greetings all,
I have programatically implemented the Pop up,when user right click on listbox cell ,then popup appears.Code is as below:
Listcell acell=new Listcell(); . . acell.addEventListener("onRightClick",new EventListener(){ public void onEvent(Event arg0) throws Exception { String bal=new String(innerVal); //The popup is a one instance of Popup,which registered to page. thePopup.getChildren().clear(); thePopup.appendChild(new Label(bal)); thePopup.open(acell); }});
My problem is,when the the listbox scrolled to the right most ,the popups does not appear on the correct postion,ie on top of correct Cell.When the popups keep on moving away from the cell.
I have uploaded some images in following URLs.(Sorry I couldn't find a screencapture program since I'm on linux.)
http://umanga.ifreepages.com/images/Screenshot-1.png
http://umanga.ifreepages.com/images/Screenshot-3.png
http://umanga.ifreepages.com/images/Screenshot-2.png
thanks in advance.
umanga
i think the click event is triggered by the list item,
so the menu show on the right side of listitem
Asked: 2008-12-05 08:28:39 +0800
Seen: 171 times
Last updated: Dec 05 '08