game: fix widget layout mixup

This commit is contained in:
Crypto City 2021-11-27 07:19:06 +00:00
parent 64c9a9d564
commit e6f8d9d63a

View File

@ -562,7 +562,7 @@ void UIUrho3D::CreateNewBlockNotification()
new_block_notification = new UITBWindow(context_, "cc/new-block-notification.tb.txt", WINDOW_SETTINGS_NONE);
new_block_notification->SetSkinBg(TBIDC("invisible-window"));
TBRect rect = loadingWalletNotificationWidget->GetRect();
TBRect rect = new_block_notification->GetRect();
rect.x = (graphics->GetWidth() / 2 - rect.w / 2);
rect.y = graphics->GetHeight() / 20;
new_block_notification->SetRect(rect);
@ -3394,7 +3394,7 @@ void UIUrho3D::HandleResized(StringHash eventType, VariantMap& eventData)
calendar_changed = true;
// re-center new block notification
rect = loadingWalletNotificationWidget->GetRect();
rect = new_block_notification->GetRect();
rect.x = (width / 2 - rect.w / 2);
rect.y = height / 20;
new_block_notification->SetRect(rect);