Correct me if I'm wrong, looks like you got 2 issue:
   1. You want to center the dialog box on a page.
   2. Your content displays outside the dialog box?



On Mon, Oct 12, 2009 at 8:23 AM, Simon Morris <[email protected]> wrote:

>
> Hello,
>
> First post to the list so please bear with me....
>
> I'm using the dialog plugin with the modal mode on quite a long HTML
> page. Reading the documentation it creates a new semi-transparent layer
> over the original page and then places the dialog contents on a layer
> above that.
>
> My problem is that when I invoke the dialog with a link near the bottom,
> the original page (the bottom layer) scrolls itself back up to the top
> of the page, leaving the modal content out of view at the bottom.
>
> So if you were a user you would load the original page, scroll to the
> bottom... open the modal dialog and find yourself scrolling back down to
> find that content. Sorry, it is hard to explain.
>
> Although the default behaviour is to open the dialog centered on the
> page (the "position" option) how can I stop the underlying window
> jumping to the top.
>
> I'm using Firefox 3.0.14 from Ubuntu but I get the same behaviour in
> Google Chrome and Internet Explorer.
>
> My jQuery code for invoking the modal dialog is
>
> // View WBS 2
> $("#view_wbs_2").dialog({
>        bgiframe: true,
>        autoOpen: false,
>        height: 560,
>        width: 630,
>        modal: true
> });
>
> Thanks
>
> ~sm
>
>
>
> >
>


-- 
MiGs

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to