diff --git a/app/dockview.cpp b/app/dockview.cpp index 0c766a0d4..884821d5b 100644 --- a/app/dockview.cpp +++ b/app/dockview.cpp @@ -545,8 +545,10 @@ void DockView::updatePosition(QRect availableScreenRect) QRect screenGeometry; QPoint position; position = {0, 0}; + const auto length = [&](int length) -> int { - return static_cast(length * (1 - maxLength()) / 2); + float offs = static_cast(offset()); + return static_cast(length * ((1 - maxLength()) / 2) + length * (offs / 100)); }; int cleanThickness = normalThickness() - shadow();