variable drop down menu size

ulab-original
Jay Sorg 14 years ago
parent 0ed29ac0cc
commit dd6a0988b7

@ -1313,6 +1313,16 @@ xrdp_bitmap_invalidate(struct xrdp_bitmap* self, struct xrdp_rect* rect)
}
else if (self->type == WND_TYPE_SPECIAL) /* 8 special */
{
if (self->popped_from != 0)
{
/* change height if there are too many items in the list */
i = xrdp_painter_text_height(painter, "W");
i = self->popped_from->string_list->count * i;
if (i > self->height)
{
self->height = i;
}
}
painter->fg_color = self->wm->white;
xrdp_painter_fill_rect(painter, self, 0, 0, self->width, self->height);
/* draw the list items */

Loading…
Cancel
Save