Attempting to set the scroll position back to the original value on refresh.

master
Todd Stinson 2012-03-06 13:45:24 -08:00
parent e4537a0685
commit a4e8ef3ad6
1 changed files with 2 additions and 0 deletions

View File

@ -685,6 +685,7 @@ void LLFloaterPathfindingLinksets::updateScrollList()
}
}
S32 origScrollPosition = mLinksetsScrollList->getScrollPos();
mLinksetsScrollList->deleteAllItems();
if (mLinksetsListPtr != NULL)
@ -732,6 +733,7 @@ void LLFloaterPathfindingLinksets::updateScrollList()
}
mLinksetsScrollList->selectMultiple(selectedUUIDs);
mLinksetsScrollList->setScrollPos(origScrollPosition);
updateEditFieldValues();
updateControls();
}