We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a30333 commit 579d589Copy full SHA for 579d589
src/core/popupanchor.cpp
@@ -189,11 +189,15 @@ void PopupAnchor::updateAnchor() {
189
if (this->mItem && this->mProxyWindow) {
190
auto baseRect =
191
this->mUserRect.isEmpty() ? this->mItem->boundingRect() : this->mUserRect.qrect();
192
+
193
auto rect = this->mProxyWindow->contentItem()->mapFromItem(
194
this->mItem,
195
baseRect.marginsRemoved(this->mMargins.qmargins())
196
);
197
198
+ if (rect.width() < 1) rect.setWidth(1);
199
+ if (rect.height() < 1) rect.setHeight(1);
200
201
this->setWindowRect(rect.toRect());
202
}
203
0 commit comments