mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
CComponentsForm: fix position of items in added forms
Position of added items in subforms was fitted with wrong offset.
Usage of relative x/y position avoids wrong positions of items in subforms.
Origin commit data
------------------
Branch: ni/coolstream
Commit: d3d0bff7ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-29 (Wed, 29 May 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -51,6 +51,8 @@ CComponentsForm::CComponentsForm(const int x_pos, const int y_pos, const int w,
|
||||
//CComponents
|
||||
x = x_pos;
|
||||
y = y_pos;
|
||||
cc_xr = x;
|
||||
cc_yr = y;
|
||||
width = w;
|
||||
height = h;
|
||||
|
||||
@@ -235,7 +237,7 @@ void CComponentsForm::paint(bool do_save_bg)
|
||||
|
||||
void CComponentsForm::paintCCItems()
|
||||
{
|
||||
size_t items_count = v_cc_items.size();
|
||||
size_t items_count = v_cc_items.size();
|
||||
int x_frm_left = x+fr_thickness; //left form border
|
||||
int y_frm_top = y+fr_thickness; //top form border
|
||||
int x_frm_right = x+width-fr_thickness; //right form border
|
||||
|
Reference in New Issue
Block a user