PDA

View Full Version : YUI Problem


ragtek
11-29-2007, 07:35 PM
Maybe, here are some yui coder^^


I want to center my Popup which i make like this:

function init() {
YAHOO.pmbox.myPanel = new YAHOO.widget.Panel("myPanel", { width:"500px", visible:true, draggable:true,fixedcenter:true,
effect:[{effect:YAHOO.widget.ContainerEffect.FADE,duration :0.5},
{effect:YAHOO.widget.ContainerEffect.SLIDE,duratio n:0.5}] } );
YAHOO.pmbox.myPanel.center();
YAHOO.pmbox.myPanel.render();
}

YAHOO.util.Event.onDOMReady(init);
my problem is that, after load is isn't centered
when i scroll, then it goes into the middle here a video of what i mean: http://www.ragtek.org/tutorials/pmfalsch.htm

Guest190829
11-29-2007, 07:43 PM
Well that is exactly what fixedcenter property is; try setting draggable to false and see if that does anything.

ragtek
11-29-2007, 08:17 PM
no with draggable:false its the same result, its just not draggable^^

--------------- Added 1196412494 at 1196412494 ---------------

here's the solutiuon http://tech.groups.yahoo.com/group/ydn-javascript/message/21632