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 */ 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; }