mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 19:01:25 +02:00
cc_frm: Simplify assigning of scroll bar width.
This commit is contained in:
@@ -443,15 +443,16 @@ void CComponentsForm::paintCCItems()
|
|||||||
sb->setDimensionsAll(x_sb, y_sb, w_sb, h_sb);
|
sb->setDimensionsAll(x_sb, y_sb, w_sb, h_sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this_w = width;
|
||||||
|
|
||||||
if(page_count > 1){
|
if(page_count > 1){
|
||||||
sb->setSegmentCount(page_count);
|
sb->setSegmentCount(page_count);
|
||||||
sb->setMarkID(cur_page);
|
sb->setMarkID(cur_page);
|
||||||
this_w = width - w_sb;
|
this_w -= w_sb;
|
||||||
sb->paint(false);
|
sb->paint(false);
|
||||||
}else{
|
}else{
|
||||||
if (sb->isPainted())
|
if (sb->isPainted())
|
||||||
sb->kill(col_body);
|
sb->kill(col_body);
|
||||||
this_w = width;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//detect if current page has changed, if true then kill items from screen
|
//detect if current page has changed, if true then kill items from screen
|
||||||
|
Reference in New Issue
Block a user