mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1235, resolved last issue with CTRL-F
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12198 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
wolf.posdorfer
parent
346ed1b32e
commit
45b418657e
@ -427,16 +427,8 @@ public class UserManager {
|
||||
{
|
||||
contactField.setSelectetIndex(e);
|
||||
ContactItem item = contactField.getSelectedContactItem();
|
||||
|
||||
// get a new width, sometimes the popup appears under the
|
||||
// current panel, that suxx, so get a different location
|
||||
int w1 = item.getNicknameLabel().getWidth();
|
||||
int w2=5;
|
||||
if(item.getIcon()!=null)
|
||||
w2 = item.getIcon().getIconWidth();
|
||||
int newWidthforStuff = w1+w2 +5;
|
||||
MouseEvent exx = new MouseEvent((Component)e.getSource(),e.getID(), e.getWhen(),e.getModifiers(),newWidthforStuff, e.getY(), e.getClickCount(), false);
|
||||
SparkManager.getContactList().showPopup(contactField,exx,item);
|
||||
MouseEvent exx = new MouseEvent((Component) e.getSource(),e.getID(), e.getWhen(),e.getModifiers(),e.getX()+20, e.getY(), e.getClickCount(), false);
|
||||
SparkManager.getContactList().showPopup(contactField.getPopup(),exx,item);
|
||||
}
|
||||
|
||||
if (e.getClickCount() == 2) {
|
||||
|
||||
Reference in New Issue
Block a user