0

Listbox Popup does not appear on correct location ?

asked 2008-12-05 08:28:39 +0800

umanga gravatar image umanga
180 3

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

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-12-05 10:31:08 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

i think the click event is triggered by the list item,
so the menu show on the right side of listitem

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-12-05 08:28:39 +0800

Seen: 171 times

Last updated: Dec 05 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More