diff options
author | rowanbeentje <rowan@beent.je> | 2010-08-03 00:38:50 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-08-03 00:38:50 +0000 |
commit | b1b0bb0fcb687b06d0af23b972396eb6f412852f (patch) | |
tree | f7099d59d03fa55ec417eb770b4c741b27b5882c /Frameworks/PSMTabBar/PSMTabDragAssistant.m | |
parent | 27afe9f25ea1b7b15ed9fb12928f9d3a6fcf9788 (diff) | |
download | sequelpro-b1b0bb0fcb687b06d0af23b972396eb6f412852f.tar.gz sequelpro-b1b0bb0fcb687b06d0af23b972396eb6f412852f.tar.bz2 sequelpro-b1b0bb0fcb687b06d0af23b972396eb6f412852f.zip |
Improve tab dragging:
- Fix toolbar issues when the last tab is dragged "out of" a window (eg a window is moved via the only tab left inside it)
- Fix window positioning flicker when dragging a tab out of its window
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabDragAssistant.m')
-rw-r--r-- | Frameworks/PSMTabBar/PSMTabDragAssistant.m | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabDragAssistant.m b/Frameworks/PSMTabBar/PSMTabDragAssistant.m index 1e7b22a1..2b670b67 100644 --- a/Frameworks/PSMTabBar/PSMTabDragAssistant.m +++ b/Frameworks/PSMTabBar/PSMTabDragAssistant.m @@ -305,11 +305,9 @@ static PSMTabDragAssistant *sharedDragAssistant = nil; } } - NSPoint windowOrigin = [[control window] frame].origin; - - windowOrigin.x -= _dragWindowOffset.width; - windowOrigin.y += _dragWindowOffset.height; - [[_draggedView window] setFrameOrigin:windowOrigin]; + NSPoint targetPoint = [[_draggedTab window] frame].origin; + targetPoint.y += _dragWindowOffset.height; + [[_draggedView window] setFrameTopLeftPoint:targetPoint]; [[_draggedView window] orderWindow:NSWindowBelow relativeTo:[[_draggedTab window] windowNumber]]; } else if (_currentTearOffStyle == PSMTabBarTearOffMiniwindow && ![_draggedTab alternateImage]) { |