1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    11
    Vote Rating
    0
    swallace is on a distinguished road

      0  

    Default BasicDialog off screen when created low on page

    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?

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    11
    Vote Rating
    0
    swallace is on a distinguished road

      0  

    Default


    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.

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    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.

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    11
    Vote Rating
    0
    swallace is on a distinguished road

      0  

    Default


    Quote Originally Posted by jacksloc
    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.
    Thanks, glad to know it's not a big deal to fix.

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    11
    Vote Rating
    0
    swallace is on a distinguished road

      0  

    Default


    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?

  6. #6
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    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. #7
    Ext User
    Join Date
    Mar 2007
    Posts
    11
    Vote Rating
    0
    swallace is on a distinguished road

      0  

    Default


    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.

  8. #8
    Ext User
    Join Date
    Mar 2007
    Posts
    11
    Vote Rating
    0
    swallace is on a distinguished road

      0  

    Default


    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.

  9. #9
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    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.

  10. #10
    Ext User
    Join Date
    Mar 2007
    Posts
    11
    Vote Rating
    0
    swallace is on a distinguished road

      0  

    Default


    Great! I look forward to giving it a try, and will let you know the results. I appreciate your efforts.

Similar Threads

  1. Screen layout
    By ssmith in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 9 Mar 2007, 3:20 PM
  2. Basic dialog + page > screen size = problem.
    By jay@moduscreate.com in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 22 Feb 2007, 6:35 AM
  3. BSOMD: Blue Screen of mild dissappointment..
    By ojintoad in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 24 Jan 2007, 12:46 AM
  4. Multiple BasicDialog instances on same page
    By khnle in forum Ext 1.x: Help & Discussion
    Replies: 11
    Last Post: 8 Dec 2006, 11:38 PM

Thread Participants: 6

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi