Skip to content

Commit

Permalink
Traktor: Dock update fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Jun 17, 2024
1 parent 1dd2927 commit 4f82e83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/Ui/Dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ void Dock::eventMouseMove(MouseMoveEvent* event)
AlignedVector< WidgetRect > widgetRects;
m_splittingPane->update(paneRect, widgetRects);
setChildRects(&widgetRects[0], (uint32_t)widgetRects.size(), true);

update();
}

setCursor(cursor);
Expand Down
5 changes: 4 additions & 1 deletion code/Ui/DockPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,10 @@ void DockPane::update(const Rect& rect, AlignedVector< WidgetRect >& outWidgetRe
if (m_detachable)
widgetRect.top += m_owner->pixel(m_gripperDim);
for (const auto& w : m_widgets)
outWidgetRects.push_back(WidgetRect(w.widget, widgetRect));
{
if (w.visible)
outWidgetRects.push_back(WidgetRect(w.widget, widgetRect));
}
}
else
{
Expand Down

0 comments on commit 4f82e83

Please sign in to comment.