You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/09/25 21:29:17 UTC
svn commit: r449782 -
/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/widget/myfaces/ScrollableFisheyeList.js
Author: werpu
Date: Mon Sep 25 12:29:16 2006
New Revision: 449782
URL: http://svn.apache.org/viewvc?view=rev&rev=449782
Log:
fix for a layouting bug, which did a too early component layout during programmatic initialisation
of the component
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/widget/myfaces/ScrollableFisheyeList.js
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/widget/myfaces/ScrollableFisheyeList.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/widget/myfaces/ScrollableFisheyeList.js?view=diff&rev=449782&r1=449781&r2=449782
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/widget/myfaces/ScrollableFisheyeList.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/widget/myfaces/ScrollableFisheyeList.js Mon Sep 25 12:29:16 2006
@@ -165,26 +165,29 @@
this.visibleWindow = this.children.length;
if(this.scrollerBegin > this.children.length)
this.scrollerBegin = this.children.length - this.visibleWindow;
- postCreate(args, frag);
},
postCreate: function(args, frag) {
- this.initializePositioning();
-
- //
- // in liberal trigger mode, activate menu whenever mouse is close
- //
- if( !this.conservativeTrigger ){
- dojo.event.connect(document.documentElement, "onmousemove", this, "mouseHandler");
- }
+ if((args != null) && (args[0] != null) && (args[0] == "programmaticdone")) {
+ this.programmaticDone(args, frag);
- // Deactivate the menu if mouse is moved off screen (doesn't work for FF?)
- dojo.event.connect(document.documentElement, "onmouseout", this, "onBodyOut");
- dojo.event.connect(this, "addChild", this, "initializePositioning");
- //dojo.event.connect(this, "removeChild", this, "initializePositioning");
+
+ this.initializePositioning();
+ //
+ // in liberal trigger mode, activate menu whenever mouse is close
+ //
+ if( !this.conservativeTrigger ){
+ dojo.event.connect(document.documentElement, "onmousemove", this, "mouseHandler");
+ }
+
+ // Deactivate the menu if mouse is moved off screen (doesn't work for FF?)
+ dojo.event.connect(document.documentElement, "onmouseout", this, "onBodyOut");
+ dojo.event.connect(this, "addChild", this, "initializePositioning");
+ //dojo.event.connect(this, "removeChild", this, "initializePositioning");
+ }
},