From 4c88081c87b42a883db8b18220adabd28f79c7ef Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 9 Sep 2013 21:01:43 +0200 Subject: [PATCH] CComponentsWindow: fix fit of footer if using frame Footer has been overpainted frame on bottom. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/566698377d34b8c7d4d4619f649c94f497eaf4de Author: Thilo Graf Date: 2013-09-09 (Mon, 09 Sep 2013) --- src/gui/components/cc_frm_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_window.cpp b/src/gui/components/cc_frm_window.cpp index c5cde1729..f26aadd25 100644 --- a/src/gui/components/cc_frm_window.cpp +++ b/src/gui/components/cc_frm_window.cpp @@ -184,7 +184,7 @@ void CComponentsWindow::initBody() if (ccw_footer) fh = ccw_footer->getHeight(); int hh = ccw_head->getHeight(); - int h_body = height - hh - fh; + int h_body = height - hh - fh - 2*fr_thickness; ccw_body->setDimensionsAll(0, CC_APPEND, width-2*fr_thickness, h_body); ccw_body->doPaintBg(false); }