backport rev 1.60: don't clamp scroll position before updating GtkRange
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -108,15 +108,15 @@ void wxScrollHelperNative::DoAdjustScrollbar(GtkRange* range,
|
||||
*linesPerPage = 0;
|
||||
}
|
||||
|
||||
// ensure that the scroll position is always in valid range
|
||||
if ( *pos > *lines )
|
||||
*pos = *lines;
|
||||
|
||||
GtkAdjustment* adj = range->adjustment;
|
||||
adj->step_increment = 1;
|
||||
adj->page_increment =
|
||||
adj->page_size = page_size;
|
||||
gtk_range_set_range(range, 0, upper);
|
||||
|
||||
// ensure that the scroll position is always in valid range
|
||||
if (*pos > *lines)
|
||||
*pos = *lines;
|
||||
}
|
||||
|
||||
void wxScrollHelperNative::AdjustScrollbars()
|
||||
|
Reference in New Issue
Block a user