From c82ad3c150384ae862a37538b44469a758d8af8d Mon Sep 17 00:00:00 2001 From: IlyaShurupov Date: Tue, 5 Nov 2024 19:36:20 +0300 Subject: [PATCH] Debug Tools and Scrollable widget --- Widgets/examples/Example.cpp | 1 + Widgets/private/managers/LayoutManager.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Widgets/examples/Example.cpp b/Widgets/examples/Example.cpp index 33f9868..37e2814 100644 --- a/Widgets/examples/Example.cpp +++ b/Widgets/examples/Example.cpp @@ -64,6 +64,7 @@ public: static ButtonWidget buttons[10]; widget.setDirection(false); + // widget.setDirection(false); setRoot(&widget); diff --git a/Widgets/private/managers/LayoutManager.cpp b/Widgets/private/managers/LayoutManager.cpp index 83f51ba..acd8f8f 100644 --- a/Widgets/private/managers/LayoutManager.cpp +++ b/Widgets/private/managers/LayoutManager.cpp @@ -36,7 +36,7 @@ void LayoutManager::findDependencies(Widget* root) { if (!widget->isUpdate()) continue; for (auto child : widget->mChildren) { - // if (!child->isUpdate()) continue; + if (!child->isUpdate()) continue; mDepGraph.insert({ child, {} });