Skip to content

Commit

Permalink
Use refit instead of fit
Browse files Browse the repository at this point in the history
  • Loading branch information
felix committed Jun 11, 2017
1 parent 3feca0c commit 653bdea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google-recaptcha.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
'_autoRenderIfNeeded(manualRender, libraryLoaded, container, sitekey)',
'_updateScrollListener(invisible, badge, fitOnScrollDisabled, container)',
'_updatePosition(inBodyDisabled, forceInBody, container)',
'_fitIfNeeded(inBody, fitOnScrollDisabled, hidden, container, rendered)',
'_refitIfNeeded(inBody, fitOnScrollDisabled, hidden, container, rendered)',
'_fetchLibrary(lang)'
],

Expand Down Expand Up @@ -415,9 +415,9 @@
return !isNaN(widgetId);
},

_fitIfNeeded(inBody, fitOnScrollDisabled, hidden, container) {
_refitIfNeeded(inBody, fitOnScrollDisabled, hidden, container) {
if (container && inBody && !fitOnScrollDisabled && !hidden) {
container.fit();
container.refit();
}
},

Expand Down

0 comments on commit 653bdea

Please sign in to comment.