[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Ovirt-devel] [PATCH] Reposition facebox on subtab select.



For example 'add storage pool'. Box was positioned based
on initially displayed content.  This positioning needed to
be called again whenever the content changes.

Signed-off-by: Jason Guiditta <jguiditt redhat com>
---
 wui/src/app/views/layouts/redux.rhtml |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/wui/src/app/views/layouts/redux.rhtml b/wui/src/app/views/layouts/redux.rhtml
index 924f300..d6cfe24 100644
--- a/wui/src/app/views/layouts/redux.rhtml
+++ b/wui/src/app/views/layouts/redux.rhtml
@@ -84,6 +84,7 @@
                           var wrapped_data = $(data).find('div').filter('[id=dialog-content-area]');
                           var my_parent = $(this).parent();
                           $('#dialog-content-area').html($(data));
+                          $('#facebox').css('left', $(window).width() / 2 - ($('#facebox table').width() / 2));
                         },
                         error: function(xhr) {$.jGrowl(xhr.status + ' ' + xhr.statusText);}
                     });
-- 
1.5.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]