Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/26/10 18:58:32 (14 years ago)
Author:
svonolfe
Message:

Implemented reviewers comments for the KnapsackProblem (#917)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Knapsack.Views/3.3/KnapsackSolutionView.cs

    r3467 r3537  
    154154              //draw knapsack
    155155              graphics.DrawRectangle(Pens.Black,
    156                 borderX - 1, borderY - 1, width + 2, knapsackHeight + 2);
     156                borderX - 1, pictureBox.Height - borderY - knapsackHeight - 1, width + 2, knapsackHeight + 2);
    157157
    158158              //draw items sorted by value
     
    180180                  double weight = Content.Weights[i];
    181181                  double factor = weight / capacity;
    182                   int elementHeight = (int)Math.Round(height * factor);
     182                  int elementHeight = (int)Math.Floor(knapsackHeight * factor);
    183183
    184184                  double value = Content.Values[i];
Note: See TracChangeset for help on using the changeset viewer.