CComponentsForm: try to fix possible transparent bars

Ion enabled frame it's possible we have transparent bars
between frame and the last item on window bottom. This should avoid this.
This commit is contained in:
2016-10-13 10:06:18 +02:00
parent c035b2fc15
commit edd2e48bbe

View File

@@ -492,7 +492,7 @@ void CComponentsForm::paintCCItems()
} }
//check height and adapt if required //check height and adapt if required
int bottom_frm = (cc_parent ? cc_yr : y) + height - 2*fr_thickness; int bottom_frm = (cc_parent ? cc_yr : y) + height/* - 2*fr_thickness*/;
int bottom_item = cc_item->getRealYPos() + h_item; int bottom_item = cc_item->getRealYPos() + h_item;
int h_diff = bottom_item - bottom_frm; int h_diff = bottom_item - bottom_frm;
int new_h = h_item - h_diff; int new_h = h_item - h_diff;