Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[qtmozembed] Use the most up to date source for content resolution. C…
…ontributes to JB#37998
  • Loading branch information
adenexter committed Mar 26, 2020
1 parent 5d8a41d commit b3b41b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qmozview_p.cpp
Expand Up @@ -812,7 +812,7 @@ void QMozViewPrivate::OnScrolledAreaChanged(unsigned int aWidth, unsigned int aH
// Normally these come from HandleScrollEvent but for some documents no such event is generated.

const float contentResoution = contentWindowSize(mMozWindow).width() / aWidth;
if (qFuzzyIsNull(mContentResolution) && !qFuzzyIsNull(contentResoution)) {
if (!qFuzzyIsNull(contentResoution)) {
mContentResolution = contentResoution;
}

Expand Down

0 comments on commit b3b41b2

Please sign in to comment.