Skip to content

Commit

Permalink
Expose Blazor components dpi (#1832)
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez authored Apr 2, 2024
1 parent 510e738 commit a290ccf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public bool IgnorePixelScaling
[Parameter(CaptureUnmatchedValues = true)]
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }

public double Dpi => dpi;

protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public bool IgnorePixelScaling
[Parameter(CaptureUnmatchedValues = true)]
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }

public double Dpi => dpi;

protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
Expand Down

0 comments on commit a290ccf

Please sign in to comment.