Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/16 15:11:54 (8 years ago)
Author:
jkarder
Message:

#1265: worked on visualization

  • keep lower left of chart during resizing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartControl.cs

    r13822 r13832  
    134134    }
    135135
     136    public System.Drawing.Rectangle GetPictureBounds() {
     137      return pictureBox.Bounds;
     138    }
     139
    136140    protected virtual void ReloadModeToolBar() {
    137141      splitContainer.Panel1.Controls.Clear();
     
    199203          var point = Chart.TransformPixelToWorld(new Point(pictureBox.Width, Chart.SizeInPixels.Height - pictureBox.Height));
    200204          var diff = Chart.UpperRight - point;
    201           Chart.SetPosition(new PointD(Chart.LowerLeft.X + (diff.DX / 2.0), Chart.LowerLeft.Y + (diff.DY / 2.0)),
    202             new PointD(Chart.UpperRight.X - (diff.DX / 2.0), Chart.UpperRight.Y - (diff.DY / 2.0)));
     205          Chart.SetPosition(new PointD(Chart.LowerLeft.X, Chart.LowerLeft.Y),
     206                            new PointD(Chart.UpperRight.X - diff.DX, Chart.UpperRight.Y - diff.DY));
    203207        }
    204208      }
Note: See TracChangeset for help on using the changeset viewer.