PDA

View Full Version : This is quite disturbing....



Bobafart
5 Feb 2007, 4:49 AM
I decided to incorporate Jack's dialog window into the front page of my recreational website/fun website (a news based website that I use that lists all of my favorite news feeds).

I tested it in the "world" section of headlines on the front page:

http://www.gabbr.com/

you will notice that if you scroll down (you can't be at the top of the page) and then click on a "world" section headline that the new dialog window pops up.. however... you get thrown to the top of the page.

it's almost like a type of effect when you are halfway down the page and there is no definable # hash.

is there a way to prevent this from happening so that when the user clicks on a link halfway down the page that they aren't catapulted back to the top?

jack.slocum
5 Feb 2007, 4:53 AM
In svn this should be corrected. You can also fix it by remove the overflow:hidden line in yui-ext.css:

body.masked{
overflow:hidden; <-- remove
}

Bobafart
5 Feb 2007, 8:43 AM
I did that Jack -- thanks for telling me this..

it is interesting that in the BasicDialog docs you have listed the x and y parameters as follows:



x: 200, //(defaults to center screen if blank)
y: 500, //(defaults to center screen if blank)


have commented them out and it doesn't default the dialog to the center of the screen.

give it a shot -- scroll down so that the "world" headlines are at the top of the page, now click one and you will see that the dialog still renders high vertically, not centrally in the viewport. In fact, if you scroll down far enough the dialog is cut off from above.

is this a bug?

Bobafart
5 Feb 2007, 8:57 AM
here is a more dramatic example that is better illustrated:

scroll to the bottom then click a headline:

http://www.gabbr.com/sandbox/yahooui/yahoodialog10.php

Bobafart
11 Feb 2007, 3:50 AM
does anyone know of a fix for this?

manugoel2003
12 Feb 2007, 9:51 AM
I am not sure coz I have not encountered it myself... but try setting "fixedcenter" to true....