Fixed bug with panel resizing where the bottom panel was overlapping on resize
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
<property name="sizeAdjustPolicy"><enum>QAbstractScrollArea::AdjustToContents</enum></property>
|
||||
<property name="horizontalScrollBarPolicy"><enum>Qt::ScrollBarAlwaysOff</enum></property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"/>
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"/>
|
||||
</property>
|
||||
|
||||
<widget class="QWidget" name="item-container">
|
||||
@@ -134,7 +134,6 @@
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetMinAndMaxSize</enum>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user