diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/PanelWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/PanelWidget.cpp
index 583126ab..bcd96775 100644
--- a/src/Insight/UserInterfaces/InsightWindow/Widgets/PanelWidget.cpp
+++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/PanelWidget.cpp
@@ -77,9 +77,9 @@ void PanelWidget::mouseReleaseEvent(QMouseEvent* event) {
}
void PanelWidget::mouseMoveEvent(QMouseEvent* event) {
- const auto position = event->pos();
-
if (this->resizingActive) {
+ const auto position = event->pos();
+
if (this->panelType == PanelWidgetType::LEFT) {
this->setFixedWidth(
std::max(
diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/TargetRegistersPaneWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/TargetRegistersPaneWidget.cpp
index 6a536f2d..faa2123d 100644
--- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/TargetRegistersPaneWidget.cpp
+++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/TargetRegistersPaneWidget.cpp
@@ -210,7 +210,7 @@ void TargetRegistersPaneWidget::onItemSelectionChange(ItemWidget* newlySelectedW
void TargetRegistersPaneWidget::resizeEvent(QResizeEvent* event) {
const auto parentSize = this->parent->size();
const auto width = parentSize.width() - 1;
- this->container->setFixedSize(width, parentSize.height());
+ this->container->setFixedWidth(width);
this->searchInput->setFixedWidth(width - 20);
/*
diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/UiFiles/TargetRegistersSidePane.ui b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/UiFiles/TargetRegistersSidePane.ui
index 9085e9c3..278feb75 100644
--- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/UiFiles/TargetRegistersSidePane.ui
+++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/UiFiles/TargetRegistersSidePane.ui
@@ -123,7 +123,7 @@
QAbstractScrollArea::AdjustToContents
Qt::ScrollBarAlwaysOff
-
+
@@ -134,7 +134,6 @@
0
-
QLayout::SetMinAndMaxSize