mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
CComponentsButton: use adequate arrangement for caption
Origin commit data
------------------
Commit: 85b1117f37
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-27 (Sat, 27 Apr 2013)
This commit is contained in:
@@ -111,7 +111,7 @@ void CComponentsButton::initCaption()
|
||||
int cap_y = this->getRealYPos();
|
||||
|
||||
if (cc_btn_icon_obj)
|
||||
cap_x = this->getRealXPos()+(width/2)-(cc_btn_icon_obj->getWidth()+cc_btn_text_w)/2+cc_btn_icon_obj->getWidth();
|
||||
cap_x = this->getRealXPos()+cc_btn_icon_obj->getWidth();
|
||||
|
||||
if (cc_btn_capt_obj){
|
||||
cc_btn_capt_obj->setDimensionsAll(cap_x, cap_y, width-cap_x, cap_h);
|
||||
|
Reference in New Issue
Block a user