Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use the true size of the scrolled widget when figuring out travel

  • Loading branch information...
commit 6b960b292eb21c44102e4adccb586cf76ebfee37 1 parent 0291cb5
@robn robn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/ui/Scroller.cpp
View
2  src/ui/Scroller.cpp
@@ -44,7 +44,7 @@ void Scroller::OnScroll(float value)
{
if (!m_innerWidget) return;
- m_innerWidget->SetDrawOffset(Point(0, -float(m_innerWidget->PreferredSize().y-GetSize().y)*value));
+ m_innerWidget->SetDrawOffset(Point(0, -float(m_innerWidget->GetSize().y-GetSize().y)*value));
}
bool Scroller::OnMouseWheel(const MouseWheelEvent &event)
Please sign in to comment.
Something went wrong with that request. Please try again.