diff --git a/src/gui/UBDockPalette.cpp b/src/gui/UBDockPalette.cpp index ef6b0344..61b2b3e4 100644 --- a/src/gui/UBDockPalette.cpp +++ b/src/gui/UBDockPalette.cpp @@ -696,7 +696,7 @@ void UBDockPalette::moveTabs() break; case eUBDockOrientation_Right: if (parentWidget()) { - origin.setX(parentWidget()->width() - width() - mTabPalette->width()); + origin.setX(parentWidget()->width() - width() - border() * 2); } break; case eUBDockOrientation_Top: ;