From 4e20c25839ea8002062d5a44c5b83c2801768879 Mon Sep 17 00:00:00 2001 From: Paddle Date: Mon, 6 Nov 2023 21:27:41 +0100 Subject: [PATCH] EditableDatumLabel : make sure the spinbox that has the focus is on top. --- src/Gui/EditableDatumLabel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/EditableDatumLabel.cpp b/src/Gui/EditableDatumLabel.cpp index f005745d46..4cab14416f 100644 --- a/src/Gui/EditableDatumLabel.cpp +++ b/src/Gui/EditableDatumLabel.cpp @@ -239,6 +239,10 @@ void EditableDatumLabel::positionSpinbox() return; } + if (spinBox->hasFocus()) { + spinBox->raise(); + } + QSize wSize = spinBox->size(); QSize vSize = viewer->size(); QPoint pxCoord = viewer->toQPoint(viewer->getPointOnViewport(getTextCenterPoint()));