Changed behavior to open section with scheduled messages at top.
This commit is contained in:
parent
d6e4613144
commit
88dab47d2c
|
@ -1154,7 +1154,9 @@ Context ScheduledWidget::listContext() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ScheduledWidget::listScrollTo(int top, bool syntetic) {
|
bool ScheduledWidget::listScrollTo(int top, bool syntetic) {
|
||||||
top = std::clamp(top, 0, _scroll->scrollTopMax());
|
top = (top == ScrollMax && syntetic)
|
||||||
|
? 0
|
||||||
|
: std::clamp(top, 0, _scroll->scrollTopMax());
|
||||||
if (_scroll->scrollTop() == top) {
|
if (_scroll->scrollTop() == top) {
|
||||||
updateInnerVisibleArea();
|
updateInnerVisibleArea();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue