Fixed filmstrip autoheight; see issue #700

This commit is contained in:
Oliver Duis 2011-06-06 16:04:27 +02:00
parent 8fe4055b92
commit 4fcb84a74c
3 changed files with 5 additions and 4 deletions

View File

@ -542,7 +542,7 @@ void FileCatalog::refreshAll () {
}
void FileCatalog::refreshHeight () {
int newHeight=fileBrowser->getEffectiveHeight();
int newHeight=fileBrowser->getEffectiveHeight() + buttonBar->get_height();
set_size_request(0, newHeight);
}

View File

@ -631,14 +631,15 @@ void ThumbBrowserBase::setScrollPosition (double h, double v) {
// needed for auto-height in single tab
int ThumbBrowserBase::getEffectiveHeight() {
int h=0;
int h=hscroll.get_height() + 2; // have 2 pixels rounding error for scroll bars to appear
{
// TODO: Check for Linux
#ifdef WIN32
Glib::Mutex::Lock lock(entryMutex);
#endif
if (fd.size()>0) h=fd[0]->getEffectiveHeight();
if (fd.size()>0) h+=fd[0]->getEffectiveHeight();
}
return h;

View File

@ -102,7 +102,7 @@ protected:
int getMinimalHeight () { return height; }
int getMinimalWidth () { return width; }
int getEffectiveHeight () { return fnlabh+dtlabh+exlabh+textGap+exp_height; }
int getEffectiveHeight () { return exp_height; }
int getStartX () { return startx; }
int getStartY () { return starty; }