part.get_graphic(state)->render(part.get_geometry().w, part.get_geometry().h);
GL::pop_matrix();
}
- else if(part.get_name()=="slider")
+ else if(part.get_name()=="slider" && multiline)
slider->render();
}
else if(row>=first_row+visible_rows)
first_row = row+1-visible_rows;
- if(slider)
- {
- unsigned scroll = max(text.get_n_lines(), visible_rows)-visible_rows;
- slider->set_range(0, scroll);
- slider->set_value(scroll-first_row);
- }
+ unsigned scroll = max(text.get_n_lines(), visible_rows)-visible_rows;
+ slider->set_range(0, scroll);
+ slider->set_value(scroll-first_row);
}
void Entry::slider_value_changed(double value)