diff options
Diffstat (limited to 'linden/indra/llui/llscrollcontainer.cpp')
-rw-r--r-- | linden/indra/llui/llscrollcontainer.cpp | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/linden/indra/llui/llscrollcontainer.cpp b/linden/indra/llui/llscrollcontainer.cpp index 414a2d7..8c8b40c 100644 --- a/linden/indra/llui/llscrollcontainer.cpp +++ b/linden/indra/llui/llscrollcontainer.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -394,33 +394,29 @@ BOOL LLScrollableContainerView::handleDragAndDrop(S32 x, S32 y, MASK mask, | |||
394 | 394 | ||
395 | BOOL LLScrollableContainerView::handleToolTip(S32 x, S32 y, LLString& msg, LLRect* sticky_rect) | 395 | BOOL LLScrollableContainerView::handleToolTip(S32 x, S32 y, LLString& msg, LLRect* sticky_rect) |
396 | { | 396 | { |
397 | if( getVisible() && pointInView(x,y) ) | 397 | S32 local_x, local_y; |
398 | for( S32 i = 0; i < SCROLLBAR_COUNT; i++ ) | ||
398 | { | 399 | { |
399 | S32 local_x, local_y; | 400 | local_x = x - mScrollbar[i]->getRect().mLeft; |
400 | for( S32 i = 0; i < SCROLLBAR_COUNT; i++ ) | 401 | local_y = y - mScrollbar[i]->getRect().mBottom; |
402 | if( mScrollbar[i]->handleToolTip(local_x, local_y, msg, sticky_rect) ) | ||
401 | { | 403 | { |
402 | local_x = x - mScrollbar[i]->getRect().mLeft; | 404 | return TRUE; |
403 | local_y = y - mScrollbar[i]->getRect().mBottom; | ||
404 | if( mScrollbar[i]->handleToolTip(local_x, local_y, msg, sticky_rect) ) | ||
405 | { | ||
406 | return TRUE; | ||
407 | } | ||
408 | } | 405 | } |
409 | // Handle 'child' view. | 406 | } |
410 | if( mScrolledView ) | 407 | // Handle 'child' view. |
408 | if( mScrolledView ) | ||
409 | { | ||
410 | local_x = x - mScrolledView->getRect().mLeft; | ||
411 | local_y = y - mScrolledView->getRect().mBottom; | ||
412 | if( mScrolledView->handleToolTip(local_x, local_y, msg, sticky_rect) ) | ||
411 | { | 413 | { |
412 | local_x = x - mScrolledView->getRect().mLeft; | 414 | return TRUE; |
413 | local_y = y - mScrolledView->getRect().mBottom; | ||
414 | if( mScrolledView->handleToolTip(local_x, local_y, msg, sticky_rect) ) | ||
415 | { | ||
416 | return TRUE; | ||
417 | } | ||
418 | } | 415 | } |
419 | |||
420 | // Opaque | ||
421 | return TRUE; | ||
422 | } | 416 | } |
423 | return FALSE; | 417 | |
418 | // Opaque | ||
419 | return TRUE; | ||
424 | } | 420 | } |
425 | 421 | ||
426 | void LLScrollableContainerView::calcVisibleSize( S32 *visible_width, S32 *visible_height, BOOL* show_h_scrollbar, BOOL* show_v_scrollbar ) | 422 | void LLScrollableContainerView::calcVisibleSize( S32 *visible_width, S32 *visible_height, BOOL* show_h_scrollbar, BOOL* show_v_scrollbar ) |