From 3ed9486a4a0146b9c9bc9d4722539596cb68f3ac Mon Sep 17 00:00:00 2001 From: Bruno Nocera Zanette <brunonzanette@gmail.com> Date: Mon, 15 Sep 2014 13:43:04 -0300 Subject: [PATCH] Fix Utilbox-Action's DIV position for popups Fix Utilbox-Action's DIV position for popups When it is a popup position is fixed at the middle of the page. --- .../webapp/WEB-INF/tags/form/fields/table.tagx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/WEB-INF/tags/form/fields/table.tagx b/src/main/webapp/WEB-INF/tags/form/fields/table.tagx index 9d6ac26..ef56f83 100644 --- a/src/main/webapp/WEB-INF/tags/form/fields/table.tagx +++ b/src/main/webapp/WEB-INF/tags/form/fields/table.tagx @@ -133,8 +133,18 @@ <c:if test="${control}"> <td rowspan="${fn:length(data)}" class="utilbox" valign="top"> + + <div class="utilbox-actions" id="id_utilbox-actions"> - <div class="utilbox-actions"> + <script type="text/javascript"> + $(document).ready(function(e){ + if ($('#id_utilbox-actions')){ + if ( $('.dijitDialogTitleBar').length ){ + $('#id_utilbox-actions').css({ top: ($(window).height()/2) }); + } + } + }); + </script> <spring:url value="/resources/images/show.png" var="show_image_url" /> <spring:message arguments="${typeName}" code="entity_show" var="show_label" htmlEscape="false" /> @@ -189,8 +199,9 @@ </c:if> </div> - + </td> + <c:set var="control" value="false" /> </c:if> -- GitLab