Hi, I think I found a bug some weeks ago and that bug is still present in
versions 1.1 and 1.2.1.
If you customize your bars using the CSS properties (SCROLLBAR-FACE-COLOR,
SCROLLBAR-FACE-COLOR, SCROLLBAR-HIGHLIGHT-COLOR, etc.), open a popup that
shows these scroll bars and then you move it, Internet Explorer will crash
completely and you will have to restart it.
You can reproduce it easily following these steps:
1.- Open the sample \samples\oldFirstSampleCode.html and add the following
styles to the body style:
body {
background:#DDD;
font-family: verdana, arial, sans-serif;
font-size:14px;
SCROLLBAR-FACE-COLOR: #D1D5DC;
SCROLLBAR-HIGHLIGHT-COLOR: white;
SCROLLBAR-3DLIGHT-COLOR: #CCCCCC;
SCROLLBAR-ARROW-COLOR: #003399;
SCROLLBAR-TRACK-COLOR: #E1E1E1;
SCROLLBAR-DARKSHADOW-COLOR: #385FAB;
SCROLLBAR-BASE-COLOR: #E0E0E0;
}
2.- Make the window 'content_win' resizeable:
...
contentWin = new Window('content_win', {className: "darkX", resizable: true,
hideEffect:Element.hide , showEffect:Element.show})
...
3.- Save and open the page in IE 6 (5.5 also has this problem). Open the
content win ('Click here to open a window with the div below at the exact
same size and position ').
4.- Resize it until you can see the scroll bars and then try to move the
popup. IE will crash.
I'm a Javascript newbie and it's difficult for me to find the problem. I
have tried to make a trace with Microsoft Script Debugger but I cannot find
the exact point where IE crash.
Thanks in advance for your help,
Jose Luis.
2007/2/28, Tsvetan Filev <[EMAIL PROTECTED] >:
I've made some tests and finally I've found the problem.
I don't know how to resolve it but it is definitely a major problem.
(Browser: FF: 2.0.0.2pre on SUSE Linux)
Attached you will find the sample html file.
Put it under the samples dir in your 1.2.1 version.
Open it with your browser.
Press the link Open.
Make sure that the window is placed away from the top like some 100 px.
Press Maximize window.
You will find that the calculated window measures are wrong.
The problem is in this line: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Transitional//EN"
" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
If you comment it out everything works perfect.
That means that when XTHML is in use (no matter what version
1.0/1.1/2.0) there are
some troubles with the calculations.
Now make another test:
Move the window to the highest possible position.
Then press maximize you will find out that the measures are correct.
I'm pretty sure you will have troubles with this bug because of all
the xhtml versions
and crappy specifications.
On 2/27/07, Sébastien Gruhier <[EMAIL PROTECTED]> wrote:
> Thanks again
> I did too fast :)
> It's working again
>
> About your contraint issue I did not succeed to reproduce it.
> Is it online?
>
> On Feb 27, 2007, at 12:07 PM, Tsvetan Filev wrote:
>
> > One more bug:
> >
> > Let's say I use this
> > win.setConstraint(true, {left:0, right:10, top: 42, bottom:10})
> >
> > And the window pops up randomly on point x: 200 y: 340
> > If I now press maximize the top level of the window will remain to
> > 340 but
> > not the allowed from the constraint 42. All others left, right, bottom
> > are ok (except the right
> > which sometimes causes the browser to show the scrollers.)
> >
> > On 2/27/07, Tsvetan Filev <[EMAIL PROTECTED]> wrote:
> >> Minimize doesn't work properly :-))))
> >>
> >> http://prototype-window.xilinus.com/current/samples/constraint.html
> >>
> >> It minimizes the window but it does not hides the contents.
> >>
> >> On 2/27/07, Sébastien Gruhier < [EMAIL PROTECTED]> wrote:
> >>> Hi
> >>>
> >>> Thanks Tsvetan
> >>>
> >>> I fixed it (just download it again)
> >>> About the random pos it's already like this.
> >>>
> >>> If you do not set top/left it will be random lcoation in the code
> >>> there is
> >>> (close to your version):
> >>>
> >>> this.options.top = this._round(Math.random()*500,
> >>> this.options.gridY);
> >>> this.options.left = this._round(Math.random()*500,
> >>> this.options.gridX);
> >>>
> >>> Seb
> >>>
> >>>
> >>> On Feb 27, 2007, at 10:53 AM, Tsvetan Filev wrote:
> >>>
> >>> Well, just keep them but do not document them.
> >>> It is always good idea to have 2 ways of doing one thing
> >>> because of some wacky idea that you can come with one day.
> >>>
> >>> Also what is missing is an algorithm for random positioning of
> >>> the windows.
> >>> Lets say that the customer wants to open 5 windows one after
> >>> another.
> >>> It will be really good to scramble the positions in order to see
> >>> all the
> >>> windows
> >>> instead of letting the customer do it on his own.
> >>>
> >>> What i did:
> >>>
> >>> x = Math.floor(Math.random()*300)+30;
> >>> y = Math.floor(Math.random()*200)+60;
> >>> windows[window_id] = new Window( window_id, {className:
> >>> "alphacube", showEffect: Element.show, hideEffect: Element.hide,
> >>> title: window_title, width:600, height:300, left:x, top:y, gridX:
> >>> 30,
> >>> gridY: 30, wiredDrag: true });
> >>>
> >>> This is not the best one but someone can give more ideas :-))))
> >>>
> >>>
> >>> Also one bug i think (Version 1.2).
> >>> Firefox: 2.0.0.2pre on my linux box.
> >>>
> >>> Effect is not defined
> >>> http://localhost/info/js/www/windows/window.js
> >>> Line 697
> >>>
> >>> setSize(600, 300, undefined) window.js (line 697)
> >>> initialize() window.js (line 188)
> >>> create() prototype.js (line 23)
> >>> open_window("1392349655_contacts", "<img
> >>> src='images/www/contacts_head_2.png' align='absmiddle' />
> >>> Contacts",
> >>> "?
> >>> block=contacts&prefix=1392349655&parent_div=1392349655_contacts_cont
> >>> ent")
> >>> main.class.js (line 94)
> >>> onclick (click clientX=0, clientY=0) info (line 1)
> >>> [Break on this error] if (this.useTop && this.useLeft &&
> >>> Effect.ResizeWindow && useEffect) {
> >>>
> >>> This happens when I disable effects.js
> >>>
> >>>
> >>> On 2/27/07, Sébastien Gruhier <[EMAIL PROTECTED]> wrote:
> >>> Hi
> >>>
> >>> I have done a new version (1.2) with:
> >>>
> >>> # Added: gridX and gridY constructor's options to snap move and
> >>> resize
> >>> # Added: Effect on modal overlay (fade/appear) only if effects.js in
> >>> included.
> >>> You can change effect options
> >>> (Windows.overlayShowEffectOptions and
> >>> Windows.overlayHideEffectOptions).
> >>> # Fixed: Multimodal mode.
> >>> # Fixed: Works on WebKit.
> >>>
> >>> # Beta: effects on minimize and maximize. You need to include
> >>> window_effects.js to have them.
> >>> Check out samples/constraint.html from the distrib (also on
> >>> samples page)
> >>>
> >>>
> >>> effects on minimize and maximize works only with top/left
> >>> location window.
> >>> I do not like bottom/right and I asking myself if I have to
> >>> remove them.
> >>> What do you think of it?
> >>>
> >>> Seb
> >>>
> >>>
> >>> _______________________________________________
> >>> 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
> >>>
> >>> _______________________________________________
> >>> 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
>
>
> _______________________________________________
> 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
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com