From 58f4163a29306e0fb4c8776621b238902a484bf7 Mon Sep 17 00:00:00 2001 From: SMJS Date: Tue, 30 Jun 2026 13:53:01 +0200 Subject: [PATCH 1/2] Draw the scrollbar on init to fix the content size --- loader/src/ui/nodes/Scrollbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader/src/ui/nodes/Scrollbar.cpp b/loader/src/ui/nodes/Scrollbar.cpp index 36aa2ac4a..8a1592093 100644 --- a/loader/src/ui/nodes/Scrollbar.cpp +++ b/loader/src/ui/nodes/Scrollbar.cpp @@ -200,6 +200,8 @@ bool Scrollbar::Impl::init(CCScrollLayerExt* target) { m_self->addChild(m_thumb); m_self->setTouchEnabled(true); + // Make sure the size is accurate in the first frame + m_self->draw(); return true; } From de15833bcb6e6ee5ab132ed096d18109ef8d42fe Mon Sep 17 00:00:00 2001 From: SMJS Date: Fri, 3 Jul 2026 16:22:15 +0200 Subject: [PATCH 2/2] Remove an ambigious ctor --- loader/include/Geode/cocos/cocoa/CCGeometry.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/loader/include/Geode/cocos/cocoa/CCGeometry.h b/loader/include/Geode/cocos/cocoa/CCGeometry.h index 489254572..34713d8e5 100644 --- a/loader/include/Geode/cocos/cocoa/CCGeometry.h +++ b/loader/include/Geode/cocos/cocoa/CCGeometry.h @@ -322,10 +322,6 @@ class CC_DLL CCSize * @lua NA */ inline constexpr CCSize(const CCSize& other) : width(other.width), height(other.height) {} - /** - * @lua NA - */ - inline constexpr CCSize(const CCPoint& point) : width(point.x), height(point.y) {} /** * @lua NA */