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 4f59bca commit 0c97b7cCopy full SHA for 0c97b7c
src/gui/qgsmaptip.cpp
@@ -155,12 +155,16 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
155
156
void QgsMapTip::resizeContent()
157
{
158
+#if WITH_QTWEBKIT
159
// Get the content size
160
QWebElement container = mWebView->page()->mainFrame()->findFirstElement(
161
QStringLiteral( "#QgsWebViewContainer" ) );
162
int width = container.geometry().width() + MARGIN_VALUE * 2;
163
int height = container.geometry().height() + MARGIN_VALUE * 2;
164
mWidget->resize( width, height );
165
+#else
166
+ mWebView->adjustSize();
167
+#endif
168
}
169
170
void QgsMapTip::clear( QgsMapCanvas * )
0 commit comments