mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
CComponentsScrollBar: fix radius for single segment
Radius on top was missed if only one segment is available.
Origin commit data
------------------
Commit: c5451046d4
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-21 (Fri, 21 Apr 2017)
This commit is contained in:
@@ -183,8 +183,12 @@ void CComponentsScrollBar::initSegments()
|
||||
}
|
||||
|
||||
//set corner types
|
||||
sb_segments_obj->front()->setCorner(RADIUS_MIN, CORNER_TOP);
|
||||
sb_segments_obj->back()->setCorner(RADIUS_MIN, CORNER_BOTTOM);
|
||||
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->back()->setCorner(RADIUS_MIN, CORNER_BOTTOM);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user