Changeset 5956
- Timestamp:
- 04/05/11 16:30:07 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.cs
r5809 r5956 106 106 protected override void OnResize(EventArgs e) { 107 107 base.OnResize(e); 108 if (this.Width == 0 || this.Height == 0)108 if (this.Width <= 1 || this.Height <= 1) 109 109 this.image = new Bitmap(1, 1); 110 110 else -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.Designer.cs
r5463 r5956 80 80 // viewContextMenuStrip 81 81 // 82 this.viewContextMenuStrip.IgnoredViewTypes = System. Linq.Enumerable.Empty<System.Type>();82 this.viewContextMenuStrip.IgnoredViewTypes = System.Type.EmptyTypes; 83 83 this.viewContextMenuStrip.Item = null; 84 84 this.viewContextMenuStrip.Name = "viewContextMenuStrip"; -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.cs
r5837 r5956 75 75 76 76 if (activeView != null) { 77 #region dispose dcachedView77 #region dispose cachedView 78 78 if (activeView != cachedView) { 79 79 if (cachedView != null) cachedView.Content = null; //needed to deregister events … … 93 93 if (view != null) { 94 94 view.Visible = true; 95 view.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; 96 view.Size = new Size(Width - this.viewsLabel.Width - this.viewsLabel.Margin.Left - this.viewsLabel.Margin.Right, this.Height); 97 view.Dock = viewsLabelVisible ? DockStyle.None : DockStyle.Fill; 95 if (ViewsLabelVisible) { 96 view.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; 97 view.Size = new Size(Width - this.viewsLabel.Width - this.viewsLabel.Margin.Left - this.viewsLabel.Margin.Right, this.Height); 98 } else view.Dock = DockStyle.Fill; 99 if (!Controls.Contains((view))) Controls.Add(view); 98 100 view.OnShown(new ViewShownEventArgs(view, false)); 99 if (!Controls.Contains((view))) Controls.Add(view);100 101 } 101 102 } else viewType = null;
Note: See TracChangeset
for help on using the changeset viewer.