7 Nov 2006 11:51 AM #1
BasicDialog off screen when created low on page
The BasicDialog, which is great by the way, seems to popup centered on the browser by default, making the rest of the page go gray.
However, when the dialog is tied to an element far down on the page, even scrolled way down, the BasicDialog pops up at the center of the top of the page (off and above the screen), and the portion marked gray is far above the button the user clicked.
For an example, use the Hello World application, and create a second button far, far, below the first one, so that you have to scroll down to get to it. You'll see, when you click that button, the dialog is created up above (at the top of the page), not where the page is scrolled to currently.
What to do?
7 Nov 2006 11:55 AM #2
Update: note that on FF it instead scrolls the page to the top, whereas in IE it just presents at the top of the form while the user is at the bottom. Neither is really desirable.
7 Nov 2006 2:53 PM #3
I've made an update to take into account scroll offsets when setting the default x/y. I will put up a build including it tonight.
7 Nov 2006 3:23 PM #4Originally Posted by jacksloc
7 Nov 2006 5:09 PM #5
Hmmm. This doesn't seem to be fixed in 0.33 Beta 4, just downloaded.
I'm using ASP.NET 2.0, a gridview, and a button on each line can show the dialog. The buttons are, naturally, all the way down the page, so that you have to scroll to get to the last one. If you choose the top one it's correctly centered, then scrolling down and choose the last one, the dialog and modal background gray are still up top.
I'm using code from the sample where it only creates the dialog variable once. Perhaps if I created it with each call?
7 Nov 2006 5:11 PM #6
You may need to set the XY manually. I know that sucks. Can you put up a link showing the problem? That would help me find a solution for you that doesn't invlove you coding for a workaround.
7 Nov 2006 5:21 PM #7
I'm planning to shift it to a public server tomorrow. You'll be able to see it then.
FYI, I notice that if you scroll down to the bottom (having not called the dialog), then call up the dialog, the dialog is correctly placed but the background gray is up top. Then, after dismissing the dialog, scroll to the top, call up the dialog, and the dialog appears down below with the gray where it belongs.
Apparently the background gray always goes to the top, while the dialog always goes where it was first presented. If that helps.
12 Nov 2006 11:08 AM #8
I have forwarded you an example of this issue (in RC1) at a public URL via your Yahoo email account.
Thanks for giving it a look.
12 Nov 2006 7:02 PM #9
The fix will be in RC2. Thanks.
I will repeat my note in the email here so others can find it:
Note: You will need to set fixedcenter:true (always recenter on display instead of remembering position) and constraintoviewport:false.
12 Nov 2006 7:17 PM #10
Great! I look forward to giving it a try, and will let you know the results. I appreciate your efforts.
By ssmith in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 9 Mar 2007, 3:20 PM
By firstname.lastname@example.org in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 22 Feb 2007, 6:35 AM
By ojintoad in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 24 Jan 2007, 12:46 AM
By khnle in forum Ext 1.x: Help & DiscussionReplies: 11Last Post: 8 Dec 2006, 11:38 PM