mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixes #1331 emote picker out of bounds
This commit is contained in:
parent
252e2e8bae
commit
16b2b2458c
3 changed files with 2 additions and 5 deletions
|
@ -538,11 +538,9 @@ void BaseWindow::closeEvent(QCloseEvent *)
|
||||||
|
|
||||||
void BaseWindow::showEvent(QShowEvent *)
|
void BaseWindow::showEvent(QShowEvent *)
|
||||||
{
|
{
|
||||||
|
this->moveIntoDesktopRect(this);
|
||||||
if (this->frameless_)
|
if (this->frameless_)
|
||||||
{
|
{
|
||||||
this->moveIntoDesktopRect(this);
|
|
||||||
qDebug() << "show";
|
|
||||||
|
|
||||||
QTimer::singleShot(30, this,
|
QTimer::singleShot(30, this,
|
||||||
[this] { this->moveIntoDesktopRect(this); });
|
[this] { this->moveIntoDesktopRect(this); });
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,8 +58,6 @@ UserInfoPopup::UserInfoPopup()
|
||||||
this->setWindowFlag(Qt::Popup);
|
this->setWindowFlag(Qt::Popup);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
auto app = getApp();
|
|
||||||
|
|
||||||
auto layout = LayoutCreator<QWidget>(this->getLayoutContainer())
|
auto layout = LayoutCreator<QWidget>(this->getLayoutContainer())
|
||||||
.setLayoutType<QVBoxLayout>();
|
.setLayoutType<QVBoxLayout>();
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,7 @@ void SplitInput::openEmotePopup()
|
||||||
if (!this->emotePopup_)
|
if (!this->emotePopup_)
|
||||||
{
|
{
|
||||||
this->emotePopup_ = new EmotePopup(this);
|
this->emotePopup_ = new EmotePopup(this);
|
||||||
|
this->emotePopup_->setStayInScreenRect(true);
|
||||||
this->emotePopup_->setAttribute(Qt::WA_DeleteOnClose);
|
this->emotePopup_->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
this->emotePopup_->linkClicked.connect([this](const Link &link) {
|
this->emotePopup_->linkClicked.connect([this](const Link &link) {
|
||||||
|
|
Loading…
Reference in a new issue