Hi Mike,

this looks like a bug to me. I have just checked the menu sources. 
Currently the timeout is only used in the constructor to configure the 
timers. Modifications of the property will have no effect. Please open a 
bug report for this in our bugzilla.

Best Fabian
> Hi,
>
> I want to report a possible bug with the openInterval property in the menu. 
> I use the word "possible", because this could just be a user-error issue.
>
> Per the API (v0.71), there is a property called openInterval on the object
> qx.ui.menu.Menu.  The API text for this property states as follows:
>
> Interval in ms after the menu should be openend
> Allowed values:
> any Integer
> Init value:
> 250
> Property attributes:
>
>     * The property value can be set using appearance themes.
>
> I tried setting this property within my appearance theme and also inline,
> using the setOpenInterval() method.  Neither approach worked.
>
> A.) Example code from my appearance theme:
>     "menu" :
>     {
>       style : function(states)
>       {
>               /*
>         var menuborder = qx.ui.core.Border.fromConfig({
>            top                : [ 1, "solid", "general-border" ],
>            left       : [ 1, "solid", "general-border" ],
>            right      : [ 1, "solid", "general-border" ],
>            bottom     : [ 1, "solid", "general-border" ]
>         });
>         */
>         
>         return {
>           openInterval : 2200,
>           backgroundColor : "menu",
>           padding         : 1
>         };
>       }
>     },
>
> I would expect all menus in example (A) to delay 2.2 seconds before opening. 
> This isn't happening.  The menus render almost immediately.
>
> B.) Example from trying in-line to affect the openInterval, using
> setOpenInterval.  This is from the showcase application, around line 388:
>
>       var m3 = new qx.ui.menu.Menu;
>       var m3_suba = new qx.ui.menu.Menu;
>       m3_suba.setOpenInterval(2000);
>       var m3_subb = new qx.ui.menu.Menu;
>       m3_subb.setOpenInterval(0);
>       var m3_subc = new qx.ui.menu.Menu;
>       var m3_subd = new qx.ui.menu.Menu;
>
> I would expect example (B) menu m3_suba to take 2 seconds to open, while
> m3_subb should open immediately, and m3_subc and m3subd should open after a
> slight 1/4 second delay (250ms default).  However, all menus seem to open
> quickly, including the m3_suba.
>
> Is it possible that I've missed something that will fix the issue in my app,
> or maybe I misunderstood the purpose of the openInterval property, or is
> this a bug in qx.ui.menu.Menu()?
>
> Thanks,
>
> Mike
>
>
>
>
>
>
>
>
>   


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, 
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to