Widgets: Improve BoxLayout

This commit is contained in:
SirLynix
2023-05-14 18:53:56 +02:00
parent f1cd5ad048
commit 3712b641f8
10 changed files with 223 additions and 79 deletions

View File

@@ -20,7 +20,7 @@ namespace Nz
{
m_canvas = this;
BaseWidget::m_registry = &m_registry;
m_widgetParent = nullptr;
m_parentWidget = nullptr;
SetBaseRenderLayer(initialRenderLayer);
@@ -99,10 +99,10 @@ namespace Nz
if (functor(targetWidget))
return;
if (!targetWidget.widget->m_widgetParent)
if (!targetWidget.widget->m_parentWidget)
return;
widgetIndex = targetWidget.widget->m_widgetParent->m_canvasIndex;
widgetIndex = targetWidget.widget->m_parentWidget->m_canvasIndex;
}
}