mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
CComponentsForm: fix fitting of item on the right and bottom edges
Frame of form was overpainted by item, small whitespace fixes
This commit is contained in:
@@ -330,7 +330,7 @@ void CComponentsForm::paintCCItems()
|
|||||||
//Is it too wide or too high, it will be shortened and displayed in the log.
|
//Is it too wide or too high, it will be shortened and displayed in the log.
|
||||||
//This should be avoid!
|
//This should be avoid!
|
||||||
//checkwidth and adapt if required
|
//checkwidth and adapt if required
|
||||||
int right_frm = (cc_parent ? cc_xr : x) + width - 2*fr_thickness;
|
int right_frm = (cc_parent ? cc_xr : x) + width - fr_thickness;
|
||||||
int right_item = cc_item->getRealXPos() + w_item;
|
int right_item = cc_item->getRealXPos() + w_item;
|
||||||
int w_diff = right_item - right_frm;
|
int w_diff = right_item - right_frm;
|
||||||
int new_w = w_item - w_diff;
|
int new_w = w_item - w_diff;
|
||||||
@@ -341,7 +341,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 - 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;
|
||||||
|
Reference in New Issue
Block a user