1
0
Fork 0

Fix eb4ba1991: Signal icons incorrectly positioned in UI. (#10199)

pull/10201/head
PeterN 2022-11-28 20:03:27 +00:00 committed by GitHub
parent 41c893dd4e
commit 387c57b023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1678,7 +1678,7 @@ private:
Point offset;
Dimension sprite_size = GetSpriteSize(image, &offset);
Rect ir = r.Shrink(WidgetDimensions::scaled.imgbtn);
int x = CenterBounds(ir.left, ir.right, sprite_size.width - offset.x); // centered
int x = CenterBounds(ir.left, ir.right, sprite_size.width - offset.x) - offset.x; // centered
int y = ir.top - sig_sprite_bottom_offset +
(ir.Height() + sig_sprite_size.height) / 2; // aligned to bottom