Преглед изворни кода

Hide tooltip if the target element becomes invisible. Possible fix for #1238.

Lasse Öörni пре 9 година
родитељ
комит
01cd737909
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Source/Urho3D/UI/ToolTip.cpp

+ 1 - 1
Source/Urho3D/UI/ToolTip.cpp

@@ -68,7 +68,7 @@ void ToolTip::Update(float timeStep)
         return;
     }
 
-    if (target_->IsHovering())
+    if (target_->IsHovering() && target_->IsVisibleEffective())
     {
         float effectiveDelay = delay_ > 0.0f ? delay_ : GetSubsystem<UI>()->GetDefaultToolTipDelay();