mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CComponentsItem: don't increase x/y position if frame width already defined
This commit is contained in:
@@ -82,8 +82,9 @@ void CComponentsItem::paintInit(bool do_save_bg)
|
||||
//if item is bound on a parent form, we must use real x/y values and from parent form as reference
|
||||
int ix = x, iy = y;
|
||||
if (cc_parent){
|
||||
ix = cc_xr + cc_parent->getFrameThickness();
|
||||
iy = cc_yr + cc_parent->getFrameThickness();
|
||||
int w_parent_frame = cc_parent->getFrameThickness();
|
||||
ix = cc_xr + (x < w_parent_frame ? w_parent_frame : 0);
|
||||
iy = cc_yr + (y < w_parent_frame ? w_parent_frame : 0);
|
||||
}
|
||||
|
||||
comp_fbdata_t fbdata[] =
|
||||
|
Reference in New Issue
Block a user