Revision 34e7d8d5

b/src/gr/grnet/pithos/web/client/Pithos.java
34 34
 */
35 35
package gr.grnet.pithos.web.client;
36 36

  
37
import gr.grnet.pithos.web.client.PithosDisclosurePanel.Style;
38 37
import gr.grnet.pithos.web.client.commands.UploadFileCommand;
39 38
import gr.grnet.pithos.web.client.foldertree.AccountResource;
40 39
import gr.grnet.pithos.web.client.foldertree.File;
......
63 62

  
64 63
import com.google.gwt.core.client.EntryPoint;
65 64
import com.google.gwt.core.client.GWT;
66
import com.google.gwt.core.client.JavaScriptObject;
67
import com.google.gwt.core.client.JsArray;
68 65
import com.google.gwt.core.client.JsArrayString;
69 66
import com.google.gwt.core.client.Scheduler;
70 67
import com.google.gwt.core.client.Scheduler.RepeatingCommand;
......
80 77
import com.google.gwt.http.client.Response;
81 78
import com.google.gwt.http.client.URL;
82 79
import com.google.gwt.i18n.client.Dictionary;
83
import com.google.gwt.i18n.client.NumberFormat;
84 80
import com.google.gwt.json.client.JSONArray;
85 81
import com.google.gwt.json.client.JSONObject;
86 82
import com.google.gwt.json.client.JSONParser;
......
89 85
import com.google.gwt.resources.client.ClientBundle;
90 86
import com.google.gwt.resources.client.CssResource;
91 87
import com.google.gwt.resources.client.ImageResource;
92
import com.google.gwt.resources.client.ClientBundle.Source;
93 88
import com.google.gwt.resources.client.ImageResource.ImageOptions;
94 89
import com.google.gwt.user.client.Command;
95 90
import com.google.gwt.user.client.Cookies;
......
404 399
        fileList = new FileList(this, images);
405 400
        inner.add(fileList);
406 401

  
407
        inner.add(createUploadArea());
408
        
409 402
        trees = new VerticalPanel();
410 403
        trees.setWidth("100%");
411 404
        
......
442 435
        // Call the window resized handler to get the initial sizes setup. Doing
443 436
        // this in a deferred command causes it to occur after all widgets'
444 437
        // sizes have been computed by the browser.
445
        Scheduler.get().scheduleDeferred(new ScheduledCommand() {
446

  
447
            @Override
448
            public void execute() {
438
        Scheduler.get().scheduleIncremental(new RepeatingCommand() {
439
			
440
			@Override
441
			public boolean execute() {
442
				if (!isCloudbarReady())
443
					return true;
449 444
                onWindowResized(Window.getClientHeight());
450
            }
451
        });
452

  
445
				return false;
446
			}
447
		});
448
        
453 449
        Scheduler.get().scheduleDeferred(new ScheduledCommand() {
454 450
            @Override
455 451
            public void execute() {
......
722 718

  
723 719
	protected void onWindowResized(int height) {
724 720
		// Adjust the split panel to take up the available room in the window.
725
		int newHeight = height - splitPanel.getAbsoluteTop();
721
		int newHeight = height - splitPanel.getAbsoluteTop() - 153;
726 722
		if (newHeight < 1)
727 723
			newHeight = 1;
728 724
		splitPanel.setHeight("" + newHeight);
729 725
		inner.setHeight("" + newHeight);
730 726
	}
731

  
727
	
728
	native boolean isCloudbarReady()/*-{
729
		if ($wnd.$("div.servicesbar") && $wnd.$("div.servicesbar").height() > 0)
730
			return true;
731
		return false;
732
	}-*/;
733
	
732 734
	@Override
733 735
	public void onResize(ResizeEvent event) {
734 736
		int height = event.getHeight();
......
1336 1338
		return getSelectedTree().equals(getMySharedTreeView());
1337 1339
	}
1338 1340
	
1339
	private FlowPanel createUploadArea() {
1340
		FlowPanel area = new FlowPanel();
1341
		area.getElement().setId("container");
1342
		HTML list = new HTML();
1343
		list.getElement().setId("filelist");
1344
		area.add(list);
1345
		Scheduler.get().scheduleDeferred(new ScheduledCommand() {
1346
			
1347
			@Override
1348
			public void execute() {
1349
//				setupUploadArea(Pithos.this, getToken());
1350
			}
1351
		});
1352
		
1353
		return area;
1354
	}
1355
	
1356 1341
	private Folder getUploadFolder() {
1357 1342
		if (folderTreeView.equals(getSelectedTree()) || otherSharedTreeView.equals(getSelectedTree())) {
1358 1343
			return getSelection();

Also available in: Unified diff