Changeset 1561 for trunk/src/org/expeditee/gui/PopupManager.java
- Timestamp:
- 05/19/21 09:01:33 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/PopupManager.java
r1175 r1561 118 118 synchronized(_popups) { 119 119 for (Popup popup : _popups) { 120 if (popup.getBounds().contains(p) ) {121 return true;120 if (popup.getBounds().contains(p) && popup.isShowing()) { 121 return true; 122 122 } 123 123 } … … 199 199 public void paint() 200 200 { 201 //Bryce: popups temporarly disabled due to them not working and interfering in things. 202 // synchronized (_popups) { 203 // for (Popup popup : _popups) { 204 // popup.update(); 205 // popup.paint(); 206 // } 207 // } 201 /* 202 if (Browser.DEBUG) { 203 System.out.println("**** PopupManger::paint() -- num popups in arraylist: " + _popups.size()); 204 } 205 */ 206 207 //Bryce: popups temporarily disabled due to them not working and interfering in things. 208 //David: block of code now reintroduced: still some issue but working through them. 209 210 synchronized (_popups) { 211 for (Popup popup : _popups) { 212 popup.update(); 213 popup.paint(); 214 } 215 } 216 208 217 } 209 218 … … 252 261 } 253 262 263 if (Browser.DEBUG) { 264 System.out.println("*** PopupManager::upate() updating animationCurrentTime: " + currentTime); 265 } 254 266 _animationCurrentTime = currentTime; 255 267 … … 353 365 setInitialBounds(fullBounds.clone()); 354 366 _initialBounds.getTopLeft().setY(_initialBounds.getTopLeft().getY() + _initialBounds.getSize().height); 367 //System.out.println("**** PopupManager::getAnimateBounds() forcing height to be fullBoundsHeight: "); 355 368 _initialBounds.getSize().height = 0; 369 //_initialBounds.getSize().height = fullBounds.getHeight(); // used to be 0 356 370 } 357 371 … … 360 374 percentShown = 1 - percentShown; 361 375 } 362 376 if (Browser.DEBUG) { 377 System.out.println("Percentage = " + percentShown + " " + fullBounds); 378 } 363 379 return AxisAlignedBoxBounds.lerp(_initialBounds, fullBounds, percentShown); 364 380 }
Note:
See TracChangeset
for help on using the changeset viewer.