Skip to contentSkip to conversation

fix menu size calculation in presence of selected item pixmap

PATCH Vladimir Testov 1 participant 1 message Apr 9, 2013

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

I don't see the logic behind this. item_top in draw_menu doesn't increase more on selected item than on any other one.

Current function does not take into account pixmap style of the selected item. This pixmap style needs for additional space to be drawn.
Overall height of the selected item is:
sel_top_pad + sel_bottom_pad + item_height - 1

So the number of shown items is miscalculated.
And in some cases we will have the bottom item not fully drawn. I can sent a screenshot.

Signature · 4 lines
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru