[Jifty-commit] jifty branch, master, updated. 34a86018fc6af3edb299f60aec731c02096f18f7
Jifty commits
jifty-commit at lists.jifty.org
Mon Jan 11 11:46:26 EST 2010
The branch, master has been updated
via 34a86018fc6af3edb299f60aec731c02096f18f7 (commit)
from e6cb698f9b7e2b83198a3466989c3f7cc7972a3b (commit)
Summary of changes:
lib/Jifty/Web/Menu.pm | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 34a86018fc6af3edb299f60aec731c02096f18f7
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Jan 11 11:46:12 2010 -0500
Scroll to show the menu if necessary
diff --git a/lib/Jifty/Web/Menu.pm b/lib/Jifty/Web/Menu.pm
index fa381f9..717fa8d 100644
--- a/lib/Jifty/Web/Menu.pm
+++ b/lib/Jifty/Web/Menu.pm
@@ -460,7 +460,12 @@ sub render_as_yui_menu {
// set container?
var menu = new YAHOO.widget.Menu("$args{id}", $json);
menu.render();
+ menu.subscribe("show", function() {
+ if ( !this.cfg.getProperty("constraintoviewport") )
+ Jifty.Utils.scrollToShow("$args{id}");
+ });
$showjs
+
if ( $binding ) {
YAHOO.util.Event.addListener("$args{button}", "click",
function() {
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list