Van, after quick once over the code, it appears this is an undocumented
option of PWC... Apparently it only executes in IE 6 for some reason (even
though its registered for all browsers -- this needs to be investigated).
I'll talk to Seb to figure out what exactly this was supposed to be used
for, but here is the solution for you.
The undocumented option is recenterAuto for window parameters. On default
its set to be true, and apparently it only executes for IE :). Its actually
set in the constructor of a window. In any case, if you set your dialog to
be recenterAuto: false, it should solve your problems. Here is an example:
Dialog.confirm($('login').innerHTML, {windowParameters:
{className:"alphacube", recenterAuto:false, width:400},
okLabel: "login", cancelLabel:
"cancel",
ok:function(win){
$('login_error_msg').innerHTML='Login or password inccorect';
$('login_error_msg').show();
Windows.focusedWindow.updateHeight
();
new Effect.Shake(
Windows.focusedWindow.getId()); return false;}});
Felix.
On 12/5/06, Felix Shnir <[EMAIL PROTECTED]> wrote:
Van, this is a volunteer effort, I hardly see how the release time line of
PWC should be affecting your projects or requirements...
As to the actual bug at hand. It looks like _center is executed multiple
times in IE 6 as opposed to other browsers. I'm going to try to pinpoint
why. Once I find it, I'll give you heads up.
Seb: it seems to me pageSize is behaving as it should, but _center is
called on end of the move of the dialog.
Felix.
On 12/5/06, Van <[EMAIL PROTECTED]> wrote:
>
> Sébastien,
>
> Based on the response below from Thomas Hansen, it sounds like I
> crossed a line that I didn't mean to. It is just that I *really* like
> your library and am trying to use it in a new web site that is
> launching soon. If I can't get this fixed in our version by the end of
> December, I'll probably have to pull it out. I even made some feeble
> attempts to patch it myself without success based on your comments
> about what you had to change to fix it.
>
> It sounded like from your earlier response that the fix was a minor
> one that I could make myself to my own local copy of the JS libraries.
> I didn't mean literally a patched version of your library. I was
> asking for the code snippet or CVS diff or whatever would be enough
> information for me to apply the bug fix for this to my own copy of
> v0.98. Heck, I'd even be willing to take a snapshot of your source
> head/branch you are working on for v0.99 and be an alpha test subject
> for it to see whether that would fix the drag issue on IE so that I
> wouldn't have to drop the new features that use PWC.
>
> If there is really no easy way for you to make the bug fix information
> available to me sooner, then so be it. If my original request was
> unreasonable, I apologize. I do appreciate what you and others like
> you do working on free software like this. In fact, I'm confident that
> I can get my company to make a donation to support your efforts as
> long as we do end up using PWC in the product we launch at the
> beginning of next year.
>
> Sincerely, Van
>
> --
> - Mike "Van" Riper
> [EMAIL PROTECTED]
>
> On 12/5/06, Thomas Hansen <[EMAIL PROTECTED] > wrote:
> > Yup, I totally agree, JavaWin is made from voluntary efforts and this
> is the
> > "thank you"...??
> >
> > I wonder when the MIT style license comes out that you can fill names
> into
> > to exclude specific persons from using a library...
> >
> >
> >
> > .t
> ___
> > From: [EMAIL PROTECTED] on behalf of Van
> > Sent: Mon 12/4/2006 2:53 PM
> > To: [email protected]
> > Subject: Re: [Javawin] Dragged Dialog snaps back to center position
> >
> > On 11/19/06, Sébastien Gruhier < [EMAIL PROTECTED]> wrote:
> > > I just add a check if pageSize is not different, it does nothing. It
> > > works!!
> > > Thanks one more time my friend IE
> > >
> > > I should post a minor release soon with this
> >
> > I'd really like the fix for this problem now. If the minor release is
> > not happening within the next week or so, I would appreciate your
> > posting the patch information to fix this problem here on the list.
> >
> > Thanks, Van
>
> _______________________________________________
> Javawin mailing list
> [email protected]
> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
>
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com