mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-11 09:40:42 +00:00
Fix scroll bar thumb size calculation
This commit is contained in:
parent
eee1719109
commit
78fbf07fc7
@ -207,7 +207,7 @@ void ScrollBar::getScrollBarInfo(int *_pos, int *_len, int *_bar_size, int *_vie
|
||||
pos = 0;
|
||||
}
|
||||
else {
|
||||
len = bar_size - (m_size-viewport_size);
|
||||
len = bar_size * viewport_size / m_size;
|
||||
len = MID(getTheme()->scrollbar_size*2-border_width, len, bar_size);
|
||||
pos = (bar_size-len) * m_pos / (m_size-viewport_size);
|
||||
pos = MID(0, pos, bar_size-len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user