mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
CComponentsScrollBar: fix radius for single segment
Radius on top was missed if only one segment is available.
Origin commit data
------------------
Branch: ni/coolstream
Commit: c5451046d4
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-21 (Fri, 21 Apr 2017)
------------------
This commit was generated by Migit
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