From 2a6e0fb1ac84b59f5e75099f7d3112bd9cf7f82c Mon Sep 17 00:00:00 2001 From: Bernard Labno Date: Thu, 13 Jan 2011 10:07:56 +0000 Subject: [PATCH] Modified jquery.pnotify.js to operate on CSS visibility attribute in stead of display. This way long messages in notify components don't break and resize notify when closer icon is shown or hidden. --- src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js b/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js index f55bf56..bf2b9c0 100644 --- a/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js +++ b/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js @@ -271,7 +271,7 @@ pnotify.animate({"opacity": opts.pnotify_nonblock_opacity}, "fast"); } if (opts.pnotify_hide && opts.pnotify_mouse_reset) pnotify.pnotify_cancel_remove(); - if (opts.pnotify_closer && !opts.pnotify_nonblock) pnotify.closer.show(); + if (opts.pnotify_closer && !opts.pnotify_nonblock) pnotify.closer.css("visibility", "visible"); }, "mouseleave": function(e) { if (opts.pnotify_nonblock) e.stopPropagation(); @@ -280,7 +280,7 @@ if (opts.pnotify_nonblock && animating != "out") pnotify.animate({"opacity": opts.pnotify_opacity}, "fast"); if (opts.pnotify_hide && opts.pnotify_mouse_reset) pnotify.pnotify_queue_remove(); - pnotify.closer.hide(); + pnotify.closer.css("visibility", "hidden"); $.pnotify_position_all(); }, "mouseover": function(e) { @@ -535,10 +535,10 @@ // Provide a button to close the notice. pnotify.closer = $14("
", { "class": "rf-ny-cl", - "css": {"cursor": "pointer", "display": "none"}, + "css": {"cursor": "pointer", "visibility": "hidden"}, "click": function() { pnotify.pnotify_remove(); - pnotify.closer.hide(); + pnotify.closer.css("visibility", "hidden"); } }) .append($14("", {"class": "rf-ny-cl-ic"})) -- libgit2 0.24.0