Jason Guiditta
2008-Aug-15 19:37 UTC
[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 at 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
Hugh Brock
2008-Aug-18 14:18 UTC
[Ovirt-devel] [PATCH] Reposition facebox on subtab select.
On Fri, Aug 15, 2008 at 03:37:22PM -0400, Jason Guiditta wrote:> 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 at 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);} > });ACK, even though this does not solve the original problem, but rather a new problem jay discovered... --Hugh