mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponentsScrollBar: fix radius for single segment
Radius on top was missed if only one segment is available.
This commit is contained in:
@@ -183,8 +183,12 @@ void CComponentsScrollBar::initSegments()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set corner types
|
//set corner types
|
||||||
|
if (sb_segments_obj->size() == 1){
|
||||||
|
sb_segments_obj->front()->setCorner(RADIUS_MIN, CORNER_ALL);
|
||||||
|
}else{
|
||||||
sb_segments_obj->front()->setCorner(RADIUS_MIN, CORNER_TOP);
|
sb_segments_obj->front()->setCorner(RADIUS_MIN, CORNER_TOP);
|
||||||
sb_segments_obj->back()->setCorner(RADIUS_MIN, CORNER_BOTTOM);
|
sb_segments_obj->back()->setCorner(RADIUS_MIN, CORNER_BOTTOM);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user