fix menu size calculation in presence of selected item pixmap
Quoted 2 lines
I don't see the logic behind this.
item_topindraw_menudoesn'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