Skip to content

Commit

Permalink
Fix a bug related to poe height
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Mar 17, 2020
1 parent 5bda75b commit dbb4845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Lurker.UI/ViewModels/OutgoingbarViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ protected override void SetWindowPosition(PoeWindowInformation windowInformation
{
var yPosition = windowInformation.FlaskBarWidth * (238 / (double)DefaultFlaskBarWidth);
var width = windowInformation.Height * DefaultWidth / 1080;
var height = windowInformation.FlaskBarHeight - (Margin * 2);
Execute.OnUIThread(() =>
{
this._view.Height = windowInformation.FlaskBarHeight - (Margin * 2);
this._view.Height = height < 0 ? 1 : height;
this._view.Width = width;
this._view.Left = windowInformation.Position.Left + yPosition;
this._view.Top = windowInformation.Position.Bottom - windowInformation.FlaskBarHeight + Margin;
Expand Down

0 comments on commit dbb4845

Please sign in to comment.