| Summary: | When processing arrows to traverse month, don't close popup when done scrolling | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Sharon Snyder <sharonbsnyder> | ||||
| Component: | Nebula | Assignee: | Emil Crumhorn <emil.crumhorn> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Sharon Snyder
Created attachment 203906 [details]
patch for mouse click processing of arrow buttons on month bar (and includes key processing fix from previously submitted patch)
Code to just fix the mouse processing is below. From CalendarComposite.java:
public void mouseUp(MouseEvent event) {
mMouseIsDown = false;
boolean bArrowThread = (mArrowThread!=null);
killArrowThread();
if (mNoDayClicked) {
mNoDayClicked = false;
return;
}
if (mDateRange) {
// this may seem odd but it's not. First we set the "up" date to the
// current date
// then we overwrite it by setting the selected date to when the
// mouse click was "down".
// that way the date set on the combo will be the date the user
// clicked first, and not the date when the user
// let go of the mouse button, this will be reflected in the
// listeners as well
mMouseUpDay = mSelectedDay;
mSelectedDay = mMouseDownDay;
}
//don't close the popup if they were pressing the arrow!
if (mSelectedDay != null && !bArrowThread) {
notifyListeners();
notifyClose();
}
}
Patch applies, thanks!! |