Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
BZ-1018218: delayed window resize until document is fully loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
pefernan committed Oct 15, 2013
1 parent e495741 commit 3bf9c49
Showing 1 changed file with 11 additions and 5 deletions.
Expand Up @@ -19,12 +19,18 @@
<%@ include file="/formModeler/defaultFormRenderingFormatterOptions.jsp" %>
</mvc:formatter>
</form>
<script type="text/javascript"defer="defer">
var width = ($(document).width() + 20) + "px";
var pDiv = $("#formRendering<%=ctxUID%>").parent();
var height = (pDiv.height() + 20) + "px";
<script type="text/javascript" defer="defer">
window.parent.resizeRendererWidget(width, height);
function resizeParent() {
var width = ($(document).width() + 20) + "px";
var height = ($("#formRendering<%=ctxUID%>").parent().height() + 20) + "px";
window.parent.resizeRendererWidget(width, height);
}
$(document).ready(function() {
setTimeout("resizeParent()", 100);
});
setAjax("formRendering<%=ctxUID%>");
</script>
Expand Down

0 comments on commit 3bf9c49

Please sign in to comment.