CComponentsButton: use y position 0 for general alignment

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9c4aadd2bf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2014-05-04 19:20:07 +02:00
parent 1f73a91a36
commit 1fa74157b2

View File

@@ -178,11 +178,12 @@ void CComponentsButton::initCaption()
int h_cap = height - 2*fr_thickness;
/*NOTE:
paint of centered text in y without y_offset
looks unlovely displaced in y direction besides icon,
but text render isn't wrong here, because chars like e. 'q', 'y' are considered!
paint of centered text in y direction without y_offset
looks unlovely displaced in y direction especially besides small icons and inside small areas,
but text render isn't wrong here, because capitalized chars or long chars like e. 'q', 'y' are considered!
Therefore we here need other icons or a hack, that considers some different height values.
*/
int y_cap = height/2 - h_cap/2;
int y_cap = 0;
cc_btn_capt_obj->setDimensionsAll(x_cap, y_cap, w_cap, h_cap);