From 6d15812d7d93370d47e63f6bf9f70be40f5a9c5d Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:21:16 +0200 Subject: 5.7 --- ui/triple_splitter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui/triple_splitter.cpp') diff --git a/ui/triple_splitter.cpp b/ui/triple_splitter.cpp index 5783bc4f..bbbc684a 100644 --- a/ui/triple_splitter.cpp +++ b/ui/triple_splitter.cpp @@ -1,7 +1,7 @@ // ************************************************************************** // * This file is part of the FreeFileSync project. It is distributed under * // * GNU General Public License: http://www.gnu.org/licenses/gpl.html * -// * Copyright (C) ZenJu (zhnmju123 AT gmx DOT de) - All Rights Reserved * +// * Copyright (C) ZenJu (zenju AT gmx DOT de) - All Rights Reserved * // ************************************************************************** #include "triple_splitter.h" @@ -189,6 +189,10 @@ void TripleSplitter::onMouseMovement(wxMouseEvent& event) { centerOffset = activeMove->getCenterPosXStart() - getCenterPosXOptimal() + event.GetPosition().x - activeMove->getMousePosXStart(); + //CAVEAT: centerOffset is evaluated *before* normalization in getCenterPosX()! + //This can lead to the strange effect of window not immediately resizing when centerOffset is extremely off limits => normalize right here + centerOffset = getCenterPosX() - getCenterPosXOptimal(); + updateWindowSizes(); Update(); //no time to wait until idle event! } -- cgit