Hmmm... still no luck, I use the googlecode you posted in my development environment, and I still get an extraneous 'scroll to bottom' on IE7 that doesn't happen on FF???
I think it has something to do with the way I declare the div's that get dialoged. I have about 30 divs, and I just defined them style="display:none" at the bottom of my html. I just noticed that when rendered on IE7, the viewport is much larger, i.e. there's a lot of empty scrollable page at the bottom in IE7 that isn't on FF. Somehow when I declare those div's with display:none, IE7 is still counting their size in the viewport determination. I tried using the ui class for hidding, but that didn't change this behavior. I think UI thinks it's doing the right thing, and I'm just declaring the div's in an IE7 incompatible way, as evidenced by difference in the way the pages are rendered, prior to anything JQuery related happening.
Also, I'm using other JQuery stuff on my site, SlideviewerPro, jrails, etc. I just may have to wait for those plugins to be properly upgraded to 1.4.2. Trying to further reproduce this on jsbin might be more work than I can handle at the moment.
for now, this fixes my situation:
- window.scrollTo($('.selector').dialog('option', 'position')[0],$('.selector').dialog('option', 'position')[1]);
First, all my dialogs are positioned with an array of ints, never by a positional string, i.e. 'center'. I'm not sure what would happen if this were called on a dialog positioned with a string.
I just call this immediately after my dialog('open') and all is well ?????????
I'll see if I can fix the IE7 div problem I'm seeing and see if that fixes this issue.