Browse Source

Fixed for z-order problem in DropShadower.

tags/2021-05-28
jules 12 years ago
parent
commit
ef19327996
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/misc/juce_DropShadower.cpp

+ 2
- 2
modules/juce_gui_basics/misc/juce_DropShadower.cpp View File

@@ -175,7 +175,7 @@ void DropShadower::updateShadows()
const int w = owner->getWidth();
const int h = owner->getHeight() + shadowEdge + shadowEdge;
for (int i = shadowWindows.size(); --i >= 0;)
for (int i = 4; --i >= 0;)
{
// there seem to be rare situations where the dropshadower may be deleted by
// callbacks during this loop, so use a weak ref to watch out for this..
@@ -197,7 +197,7 @@ void DropShadower::updateShadows()
}
if (sw != nullptr)
sw->toBehind (owner);
sw->toBehind (i == 3 ? owner : shadowWindows.getUnchecked (i + 1));
if (sw == nullptr)
return;


Loading…
Cancel
Save