revert an accidental change in a previous commit, to gui2 scrollbar

Partially reverts 2021a42d5b
I had this on a testing branch but I didn't intend to commit.
This commit is contained in:
Chris Beck 2014-11-13 16:39:41 -05:00
parent 692b18781a
commit eb9ac4dd9b

View file

@ -130,7 +130,7 @@ void tscrollbar_::set_item_position(const unsigned item_position)
? item_count_ - visible_items_
: item_position;
item_position_ = ((step_size_ * item_position_) + step_size_ - 1) / step_size_; // round to nearest step size
item_position_ = (item_position_ + step_size_ - 1) / step_size_;
if(all_items_visible()) {
item_position_ = 0;