Menu

#48 Cloud Header's icon doesn't place correctly

N6 RC1
open
6
2009-02-17
2009-02-17
No

In the design time the icon is correctly positioned, but in runtime the icon is positioned too high.

This bug was reported by Starf1x.

Discussion

  • mn_progr

    mn_progr - 2009-02-27

    We have fixed and verified the fix for this bug. We modified the drawIcon method inside CloudHeader.cs. We modified the IF statement in the TRY block in that method. That IF statement now contains the CalculateIconPoint(); method call before the DrawImage method is invoked. We have inserted a comment where to add the calculation call. Here is the modified code for the drawIcon method:

    private void drawIcon(Graphics graphics)
    {
    try
    {
    if (icon != null && iconPoint != null)
    {
    CalculateIconPoint(); //--Add calculation call here
    graphics.DrawImage(icon, iconPoint.X, iconPoint.Y, icon.Width, icon.Height);
    }
    }
    catch
    {
    // If icon is null an error occurs
    }
    }

     
  • SubsonicDesign

    SubsonicDesign - 2009-03-09

    Thanks guys, the fix works properly and will be added to the next version of Cloud Toolkit.Net

    Best regards,
    Timo Salomäki

     

Log in to post a comment.

MongoDB Logo MongoDB