Fixed positioning of upload alert
authorChristos Stathis <chstath@ebs.gr>
Fri, 25 May 2012 12:47:44 +0000 (15:47 +0300)
committerChristos Stathis <chstath@ebs.gr>
Fri, 25 May 2012 12:47:44 +0000 (15:47 +0300)
src/gr/grnet/pithos/web/client/Pithos.java

index a2d0dcc..992916f 100644 (file)
@@ -227,7 +227,7 @@ public class Pithos implements EntryPoint, ResizeHandler {
        /**
         * The bottom panel that contains the status bar.
         */
-       private StatusPanel statusPanel = null;
+       StatusPanel statusPanel = null;
 
        /**
         * The file list widget.
@@ -1394,11 +1394,10 @@ public class Pithos implements EntryPoint, ResizeHandler {
                                
                                @Override
                                public void setPosition(int offsetWidth, int offsetHeight) {
-                                       uploadAlert.setPopupPosition((Window.getClientWidth() - offsetWidth)/2, Window.getClientHeight() - offsetHeight);
+                                       uploadAlert.setPopupPosition((Window.getClientWidth() - offsetWidth)/2, statusPanel.getAbsoluteTop() - offsetHeight);
                                }
                        });
-               else
-                       uploadAlert.setNumOfFiles(nOfFiles);
+               uploadAlert.setNumOfFiles(nOfFiles);
        }
        
        public void hideUploadAlert() {