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_content")
> 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