syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdisabat...@apache.org
Subject syncope git commit: [SYNCOPE-156] NotificationPanel doesn't appear if page is long and contains a scrollbar
Date Fri, 04 Mar 2016 11:01:38 GMT
Repository: syncope
Updated Branches:
  refs/heads/master b38650de0 -> 3826d0238


[SYNCOPE-156] NotificationPanel doesn't appear if page is long and contains a scrollbar


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/3826d023
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/3826d023
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/3826d023

Branch: refs/heads/master
Commit: 3826d02383f8855e46880f4ad54979584d9474d3
Parents: b38650d
Author: Marco Di Sabatino Di Diodoro <mdisabatino@apache.org>
Authored: Fri Mar 4 11:56:01 2016 +0100
Committer: Marco Di Sabatino Di Diodoro <mdisabatino@apache.org>
Committed: Fri Mar 4 11:56:01 2016 +0100

----------------------------------------------------------------------
 .../console/panels/NotificationPanel.java       |  3 ++-
 .../console/panels/NotificationPanel.html       | 24 +++++++++++++++-----
 2 files changed, 20 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/3826d023/client/console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
b/client/console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
index f405a5e..b113195 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
@@ -41,7 +41,8 @@ public class NotificationPanel extends Panel implements IFeedback, IGenericCompo
         super(id);
 
         final Options options = new Options();
-        options.set("position", "{ pinned: true }");
+        options.set("appendTo", "'#appendto'");
+        options.set("stacking", "'up'");
         options.set("templates",
                 "[ { type: 'success', template: $('#successTemplate').html() },"
                 + " { type: 'info', template: $('#successTemplate').html() },"

http://git-wip-us.apache.org/repos/asf/syncope/blob/3826d023/client/console/src/main/resources/org/apache/syncope/client/console/panels/NotificationPanel.html
----------------------------------------------------------------------
diff --git a/client/console/src/main/resources/org/apache/syncope/client/console/panels/NotificationPanel.html
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/NotificationPanel.html
index 1b3aefc..2870588 100644
--- a/client/console/src/main/resources/org/apache/syncope/client/console/panels/NotificationPanel.html
+++ b/client/console/src/main/resources/org/apache/syncope/client/console/panels/NotificationPanel.html
@@ -17,23 +17,35 @@ specific language governing permissions and limitations
 under the License.
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org">
+  <wicket:head>
+    <style type="text/css">
+      div.position {
+        position: fixed;
+        right: 5px;
+        bottom: 20px;
+        width: auto;
+        z-index: 999999;
+      }
+    </style>
+  </wicket:head>
   <wicket:panel>
 
+    <div id="appendto" class="position"></div>
     <span wicket:id="feedback"></span>
 
     <script id="errorTemplate" type="text/x-kendo-template">
       <div class="alert alert-danger alert-dismissible" style="margin-bottom: 0px; min-width:
370px">
-        <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
-        <h4><i class="icon fa fa-ban"></i> Error!</h4>
-        #= message #     
+      <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
+      <h4><i class="icon fa fa-ban"></i> Error!</h4>
+      #= message #     
       </div>
     </script>
 
     <script id="successTemplate" type="text/x-kendo-template">
       <div class="alert alert-success alert-dismissible" style="margin-bottom: 0px; min-width:
370px">
-        <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
-        <h4><i class="icon fa fa-check"></i> Success!</h4>
-          #= message #
+      <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
+      <h4><i class="icon fa fa-check"></i> Success!</h4>
+      #= message #
       </div>
     </script>
   </wicket:panel>


Mime
View raw message