Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelrieder committed Aug 22, 2012
1 parent 403c580 commit c9ab979
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/en/elem/iuplist.html
Expand Up @@ -172,7 +172,9 @@ <h3><a name="Attributes">Attributes</a></h3>
associate an image to a name. See also <a href="iupimage.html">IupImage</a>.
The image is always displayed at the left of the text and only when
SHOWIMAGE=Yes. When EDITBOX=Yes the image is not display at the edit box. Images
don't need to have the same size. (since
don't need to have the same size. In Windows, images with height larger than 255
pixels (the maximum height supported by driver) has its size reduced
proportionally to this value (since
3.6)</p>


Expand Down
3 changes: 3 additions & 0 deletions src/win/iupwin_list.c
Expand Up @@ -118,7 +118,10 @@ static void winListSetItemData(Ihandle* ih, int pos, const char* str, HBITMAP hB
/* LB_SETITEMHEIGHT and CB_SETITEMHEIGHT messages set the height, in pixels, of items in a list box.
According by the documentation, the maximum height is 255 pixels. */
if(img_h > 255)
{
img_w = (int)((img_w * 255) / img_h); /* width is reduced proportionally */
img_h = 255;
}

/* Update the item height */
if (img_h > txt_h)
Expand Down

0 comments on commit c9ab979

Please sign in to comment.