Revision 430898e5

b/src/gr/grnet/pithos/web/client/MessagePanel.java
42 42
import com.google.gwt.event.dom.client.ClickHandler;
43 43
import com.google.gwt.resources.client.ClientBundle;
44 44
import com.google.gwt.resources.client.ImageResource;
45
import com.google.gwt.user.client.Window;
45 46
import com.google.gwt.user.client.ui.AbstractImagePrototype;
46 47
import com.google.gwt.user.client.ui.Composite;
47 48
import com.google.gwt.user.client.ui.HTML;
......
93 94
	 * A link to send feedBack about the error.
94 95
	 */
95 96
	private HTML feedbackLink;
97
	
98
	Pithos app;
99
	
96 100
	/**
97 101
	 * The widget's constructor.
98 102
	 *
99 103
	 * @param newImages a bundle that provides the images for this widget
100 104
	 */
101
	public MessagePanel(final Pithos app, final Images newImages) {
105
	public MessagePanel(Pithos _app, final Images newImages) {
106
		app = _app;
102 107
		images = newImages;
103 108
		simplePanel = new SimplePanel();
104 109
		simplePanel.setStyleName("effectPanel");
......
212 217
	public void hideMessage() {
213 218
		message = new HTML(" ");
214 219
		this.setVisible(false);
220
		app.onWindowResized(Window.getClientHeight());
215 221
	}
216

  
217 222
}
b/src/gr/grnet/pithos/web/client/Pithos.java
744 744
	 */
745 745
	public void displayError(String msg) {
746 746
		messagePanel.displayError(msg);
747
		onWindowResized(Window.getClientHeight());
747 748
	}
748 749

  
749 750
	/**
......
753 754
	 */
754 755
	public void displayWarning(String msg) {
755 756
		messagePanel.displayWarning(msg);
757
		onWindowResized(Window.getClientHeight());
756 758
	}
757 759

  
758 760
	/**
......
762 764
	 */
763 765
	public void displayInformation(String msg) {
764 766
		messagePanel.displayInformation(msg);
767
		onWindowResized(Window.getClientHeight());
765 768
	}
766 769

  
767 770
	/**

Also available in: Unified diff