Fixed filmstrip autoheight; see issue #700
This commit is contained in:
parent
8fe4055b92
commit
4fcb84a74c
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user