Explorar o código

Dragging tabs now drags them from the center and not from the left edge

Marko Pintera %!s(int64=12) %!d(string=hai) anos
pai
achega
8c7cb2c327
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 1
      CamelotClient/Source/BsGUITabbedTitleBar.cpp
  2. 0 1
      EditorWindowDock.txt

+ 1 - 1
CamelotClient/Source/BsGUITabbedTitleBar.cpp

@@ -184,7 +184,7 @@ namespace BansheeEditor
 				mDraggedBtn = mTabButtons[uniqueIdxToSeqIdx(mTempDraggedTabIdx)];
 				mDraggedBtn->_setDraggedState(true);
 
-				mInitialDragOffset = Math::roundToInt(mDraggedBtn->_getWidth() * 0.5f);
+				mInitialDragOffset = Math::roundToInt(mDraggedBtn->_getOptimalSize().x * 0.5f);
 				mDragInProgress = true;
 			}
 

+ 0 - 1
EditorWindowDock.txt

@@ -1,7 +1,6 @@
 TODO:
  - When dragging a tab and then releasing the drag over another tab, that tab becomes active
  - When dragging a temp tab I drag it from its left side while it would be better to drag it from center
- - Vector subscript out of range issue I'm not sure how to reproduce
  - Clip tabs so that they don't overlap min/close buttons
  - (Unrelated) Can't click and drag a scroll handle