[NUI] Change clipping mode of ScrollableBase (#2354)
authorbshsqa <32317749+bshsqa@users.noreply.github.com>
Wed, 9 Dec 2020 05:22:46 +0000 (14:22 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 15 Dec 2020 06:33:59 +0000 (15:33 +0900)
- ClipChildren clipping mode uses stencil buffer.
 - But, scrollableBase is always pretended as rectangular shape so we can change it to ClipToBoundingBox that uses scissor.
 - Usually, Scissor is better than stencil buffer for the performance.

Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
src/Tizen.NUI.Components/Controls/ScrollableBase.cs

index cd50bd6..6ea4122 100755 (executable)
@@ -615,7 +615,7 @@ namespace Tizen.NUI.Components
             mPanGestureDetector.AddDirection(PanGestureDetector.DirectionVertical);
             mPanGestureDetector.Detected += OnPanGestureDetected;
 
-            ClippingMode = ClippingModeType.ClipChildren;
+            ClippingMode = ClippingModeType.ClipToBoundingBox;
 
             //Default Scrolling child
             ContentContainer = new View()