From a12a7a3e9c4797c5d3ddaef23766a89c3ecc8040 Mon Sep 17 00:00:00 2001 From: Bernard Labno Date: Mon, 10 Jan 2011 07:54:58 +0000 Subject: [PATCH] Added div with style clear:both to clear icon float in notify. --- src/main/resources/org/richfaces/renderkit/html/css/jquery.pnotify.xcss | 3 +++ src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/resources/org/richfaces/renderkit/html/css/jquery.pnotify.xcss b/src/main/resources/org/richfaces/renderkit/html/css/jquery.pnotify.xcss index f9f925e..5cebfa8 100644 --- a/src/main/resources/org/richfaces/renderkit/html/css/jquery.pnotify.xcss +++ b/src/main/resources/org/richfaces/renderkit/html/css/jquery.pnotify.xcss @@ -88,6 +88,9 @@ html > body .rf-ny { .rf-ny-te { display: block; } +.rf-ny-fcl { + clear: both; +} .rf-ny-ic { display: none; float: left; 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 6e02376..f55bf56 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 @@ -572,6 +572,9 @@ if (opts.pnotify_text === false) pnotify.text_container.hide(); + //Append div with clear:both class + $14("
", {"class":"rf-ny-fcl"}).appendTo(pnotify.container); + // Set width and min height. if (typeof opts.pnotify_width == "string") pnotify.css("width", opts.pnotify_width); -- libgit2 0.24.0