/// <summary>
        /// Not yet documented.
        /// </summary>
        public static DragHandle EndDragHandle()
        {
            var dragHandle = dragHandles.Pop();

            GUIHelper.EndLayoutMeasuring();
            dragHandle.Update();
            dragHandle.Rect = dragHandle.TempRect;

            return(dragHandle);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Not yet documented.
        /// </summary>
        public static DragHandle EndDragHandle()
        {
            var dragHandle = dragHandles.Pop();

            if (Event.current.type == EventType.Repaint)
            {
                var rect = GUIHelper.EndLayoutMeasuring();
                if (dragHandle.IsDragging == false)
                {
                    dragHandle.TempRect = rect;
                }
            }

            dragHandle.Update();
            dragHandle.Rect = dragHandle.TempRect;

            return(dragHandle);
        }