Browse Source

Don't let clip: always; overrule clip: n; (#251)

Don't overrule clip: n; properties when clip is set to always on an ancestor.
MatthiasJFM 4 years ago
parent
commit
020c4191c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/ElementUtilities.cpp

+ 1 - 1
Source/Core/ElementUtilities.cpp

@@ -194,7 +194,7 @@ bool ElementUtilities::GetClippingRegion(Vector2i& clip_origin, Vector2i& clip_d
 			break;
 			break;
 
 
 		// Merge the existing clip region with the current clip region if we aren't ignoring clip regions.
 		// Merge the existing clip region with the current clip region if we aren't ignoring clip regions.
-		if (clip_always || (num_ignored_clips == 0 && clip_enabled))
+		if ((clip_always || clip_enabled) && num_ignored_clips == 0)
 		{
 		{
 			// Ignore nodes that don't clip.
 			// Ignore nodes that don't clip.
 			if (clip_always || clipping_element->GetClientWidth() < clipping_element->GetScrollWidth() - 0.5f ||
 			if (clip_always || clipping_element->GetClientWidth() < clipping_element->GetScrollWidth() - 0.5f ||