Moved the message panel on top of the header
authorChristos Stathis <chstath@ebs.gr>
Mon, 30 Jan 2012 09:30:00 +0000 (11:30 +0200)
committerChristos Stathis <chstath@ebs.gr>
Mon, 30 Jan 2012 09:30:00 +0000 (11:30 +0200)
src/gr/grnet/pithos/web/client/Pithos.java

index dc1d52b..fd72073 100644 (file)
@@ -291,6 +291,11 @@ public class Pithos implements EntryPoint, ResizeHandler {
                outer.setCellHorizontalAlignment(topPanel, HasHorizontalAlignment.ALIGN_CENTER);
         }
         
+        messagePanel.setVisible(false);
+        outer.add(messagePanel);
+        outer.setCellHorizontalAlignment(messagePanel, HasHorizontalAlignment.ALIGN_CENTER);
+        outer.setCellVerticalAlignment(messagePanel, HasVerticalAlignment.ALIGN_MIDDLE);
+
         HorizontalPanel header = new HorizontalPanel();
         header.addStyleName("pithos-header");
         header.setWidth(contentWidth);
@@ -307,11 +312,6 @@ public class Pithos implements EntryPoint, ResizeHandler {
         header.setCellHorizontalAlignment(upload, HasHorizontalAlignment.ALIGN_LEFT);
         header.setCellVerticalAlignment(upload, HasVerticalAlignment.ALIGN_MIDDLE);
 
-        messagePanel.setVisible(false);
-        header.add(messagePanel);
-        header.setCellHorizontalAlignment(messagePanel, HasHorizontalAlignment.ALIGN_CENTER);
-        header.setCellVerticalAlignment(messagePanel, HasVerticalAlignment.ALIGN_MIDDLE);
-
         toolbar = new Toolbar(this);
         header.add(toolbar);
         header.setCellHorizontalAlignment(toolbar, HasHorizontalAlignment.ALIGN_CENTER);