Fixed issue #317 (filmstrip does not scroll to opened image when entering editor)
This commit is contained in:
@@ -529,6 +529,12 @@ void ThumbBrowserBase::enableTabMode(bool enable) {
|
||||
refreshThumbImages();
|
||||
else
|
||||
redraw();
|
||||
|
||||
// Scroll to selected position if going into ribbon mode
|
||||
if (inTabMode && !selected.empty()) {
|
||||
int h=selected[0]->getStartX();
|
||||
hscroll.set_value (MIN(h, hscroll.get_adjustment()->get_upper()));
|
||||
}
|
||||
}
|
||||
|
||||
void ThumbBrowserBase::initEntry (ThumbBrowserEntryBase* entry) {
|
||||
|
Reference in New Issue
Block a user