Tweaking

should actually be, if the number of menu entries is n, 22n + 5(n-1) (+
margin if applicable) px vertically. This works out to 27n - 5
(+margin) px. Those values may be right, yet to test, occurred to me
just now. Also note that the margin isn’t correct necessarily (it is
supposed to be the space the rounded edges occupy, this is actually
incorrect as the graphic is scaled, and differently scaled for x and y
to boot. Will look into fixing this, but for now it isn’t too bad).