mart added a comment.
now everything is centered. for some reasons (i didn't fully understand that) the option->rect of scrollBarInternalSubControlRect was influenced by the previous calls of it, if i just substract. now using absolute values for the rect, it always returns the proper value and everyuthing is centerd REPOSITORY R31 Breeze BRANCH arcpatch-D26655 REVISION DETAIL https://phabricator.kde.org/D26655 To: mart, #plasma, #breeze, #vdg, ngraham Cc: ndavis, ahiemstra, hpereiradacosta, mthw, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart