Auto-sizing of single tab thumbnail ribbon, also on zoomin/out. Stops autosizing once you manually move the ribbon splitter.

This commit is contained in:
Oliver Duis
2010-11-10 00:39:20 +01:00
parent a876935d37
commit 6cce14161f
6 changed files with 23 additions and 2 deletions

View File

@@ -534,6 +534,14 @@ void ThumbBrowserBase::setScrollPosition (double h, double v) {
vscroll.set_value (v>vscroll.get_adjustment()->get_upper() ? vscroll.get_adjustment()->get_upper() : v);
}
// needed for auto-height in single tab
int ThumbBrowserBase::getEffectiveHeight() {
int h=0;
if (fd.size()>0) h=fd[0]->getEffectiveHeight();
return h;
}
/*void PreviewImgUpdater::processCustomOrder () {
// find first filtered entry, if any