Browse Source

Return correct value for viewport.

The `DateTimePickerPanel`'s viewport is __not__ the height of a single item ;) Scrolling is done in pixels, so it should be the size of the bounds.
pull/7964/head
Steven Kirk 5 years ago
parent
commit
4deaa51ef1
  1. 2
      src/Avalonia.Controls/DateTimePickers/DateTimePickerPanel.cs

2
src/Avalonia.Controls/DateTimePickers/DateTimePickerPanel.cs

@ -270,7 +270,7 @@ namespace Avalonia.Controls.Primitives
public Size Extent => _extent;
public Size Viewport => new Size(0, ItemHeight);
public Size Viewport => Bounds.Size;
public event EventHandler? ScrollInvalidated;

Loading…
Cancel
Save