Improve web extension position (#1717)

This commit is contained in:
alazymeme 2020-06-07 19:33:45 +10:00 committed by GitHub
parent 50d669a1af
commit 39cc421f95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,9 +270,9 @@ void AttachedWindow::updateWindowRect(void *_attachedPtr)
int o = this->fullscreen_ ? 0 : 8;
::MoveWindow(hwnd, int(rect.right - this->width_ * scale - o),
int(rect.bottom - this->height_ * scale - o) + 4,
int(this->width_ * scale) - 5,
int(this->height_ * scale) - 5, true);
int(rect.bottom - this->height_ * scale - o),
int(this->width_ * scale), int(this->height_ * scale),
true);
}
// if (this->fullscreen_)