Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/ml fixes #1066

Merged
merged 2 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,14 @@ private void DrawSeries(MicroGraphics graphics, List<HistogramChartSeries> serie
var barHeight = (int)(heightScale * pair.Y);

// make sure we don't draw off-chart for over-scale values
if (barHeight > ChartAreaHeight) { barHeight = ChartAreaHeight; }
if (barHeight > ChartAreaHeight)
{
barHeight = ChartAreaHeight;
}
if ((x < ChartAreaLeft) || (x > ChartAreaLeft + ChartAreaWidth))
{
continue;
}

DrawValueBar(
graphics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
public class Box : ThemedControl
{
private Color _foreColor;
private bool _isFilled = true;

/// <summary>
/// Gets or sets a value indicating whether the display box is filled with the foreground color.
/// </summary>
public bool IsFilled { get; set; } = true;
public bool IsFilled
{
get => _isFilled;
set => SetInvalidatingProperty(ref _isFilled, value);
}

/// <summary>
/// Initializes a new instance of the <see cref="Box"/> class with the specified dimensions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public void Add(params IControl[] controls)
{
foreach (var control in controls)
{
if (control is null) continue;

control.Parent = _container;
_controls.Add(control);
}
Expand Down
Loading