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) {
|
||||
|
@@ -103,6 +103,7 @@ protected:
|
||||
int getMinimalWidth () { return width; }
|
||||
|
||||
int getEffectiveHeight () { return fnlabh+dtlabh+exlabh+textGap+exp_height; }
|
||||
int getStartX () { return startx; }
|
||||
|
||||
bool inside (int x, int y);
|
||||
bool insideWindow (int x, int y, int w, int h);
|
||||
|
Reference in New Issue
Block a user