summaryrefslogtreecommitdiff
path: root/distro-configs
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2020-06-30 16:49:52 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2020-07-01 17:18:15 +0200
commit17b75eb1d7032f8ff85d9af1ec635fa1800cca1e (patch)
tree455093dea761e37fc7ac7f5e149376a2707150ed /distro-configs
parent53d5e2db91a7fd158fe0cfae3e3139b0ee8f3934 (diff)
tdf#130991 Fit the drop-down arrow into its rect
Looking at the original fixed-size arrow painting code replaced in commit b62c43d1200e524369d9c7c2bd1dad3044efd672 ("Anti-alias toolbar button drop-downs."), it used some fixed values of 5 and 3 to match the arrow box width of 11. The new code assumes the width is the expected arrow size, minus a minimal margin to separate the arrow from the button border, and there is enough height available. Based on these assumptions, the code now scales, positions and paints the triangle to fill the available space. Change-Id: Ied721e494d105106086ef6252e72ae7395eafe08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97537 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'distro-configs')
0 files changed, 0 insertions, 0 deletions