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

Fixed tree view bounds so they are properly clipped

Marko Pintera пре 12 година
родитељ
комит
d816266400
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      CamelotClient/Source/BsGUISceneTreeView.cpp

+ 3 - 0
CamelotClient/Source/BsGUISceneTreeView.cpp

@@ -739,6 +739,9 @@ namespace BansheeEditor
 	{
 		Vector2I offset = _getOffset();
 		mClippedBounds = RectI(offset.x, offset.y, _getWidth(), _getHeight());
+
+		RectI localClipRect(mClipRect.x + mOffset.x, mClipRect.y + mOffset.y, mClipRect.width, mClipRect.height);
+		mClippedBounds.clip(localClipRect);
 	}
 
 	void GUISceneTreeView::_updateLayoutInternal(INT32 x, INT32 y, UINT32 width, UINT32 height,