cc_frm: Simplify assigning of scroll bar width.

Origin commit data
------------------
Commit: 6339ba9e2d
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
This commit is contained in:
2020-12-07 23:28:52 +01:00
committed by vanhofen
parent 2c529dce6d
commit ad5ba834c2

View File

@@ -443,15 +443,16 @@ void CComponentsForm::paintCCItems()
sb->setDimensionsAll(x_sb, y_sb, w_sb, h_sb);
}
this_w = width;
if(page_count > 1){
sb->setSegmentCount(page_count);
sb->setMarkID(cur_page);
this_w = width - w_sb;
this_w -= w_sb;
sb->paint(false);
}else{
if (sb->isPainted())
sb->kill(col_body);
this_w = width;
}
//detect if current page has changed, if true then kill items from screen