Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenApoc/OpenApoc
/ updateScrollChangeValue
Method
updateScrollChangeValue
forms/scrollbar.cpp:191–195 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
189
}
190
191
void ScrollBar::updateScrollChangeValue()
192
{
193
ScrollChange =
194
static_cast<int>(std::max((Maximum - Minimum + 2) * (float)ScrollPercent / 100.0f, 1.0f));
195
}
196
197
void ScrollBar::update()
198
{
Callers
2
onRender
Method · 0.80
onRender
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected