Fixed issue with undocking: now undocks to the correct position, for vertical and horizontal splitters