I have a list of records that may be taller than the screen by a lot.
I'm using Dialog to show a non-modal edit form when the user clicks
Edit links in the list.
The problems are that a) if the list is tall and the user is scrolled
down the page when they open it, it opens at the top of the screen,
out of sight, and b) if it's open and they scroll the list, the dlog
scrolls up out of sight too.
I've tried setting position:top in Dialog options, and that does get
it to open at the top of the visible part of the window, solving (a),
but it still scrolls out of sight as in (b).
I also tried setting position:fixed in the dlg's css, which fixes (b),
but the further down the user is scrolled when the dlg opens, the
further down the dlg opens initially. If you're scrolled far enough,
it doesn't appear, or more likely, appears in some alternate dimension
where I can't see it, no matter where I scroll.
Doing both of the above together acts like the css-only solution.
Is there any way to cause the dlg to stay in a fixed position (has to
be css position:fixed I think), but still have it open in a useful
place on the screen when not scrolled to the top?
Thanks,
s