fixed balloon
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer-app@113650 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ef6c359f30
commit
ae06e74778
|
@ -187,21 +187,12 @@ public class ApplicationController implements WmsDialogHandler{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the new position.
|
|
||||||
*
|
*
|
||||||
* @param scrollTop the scroll top
|
|
||||||
* @param left the left
|
|
||||||
* @param height the height
|
|
||||||
*/
|
*/
|
||||||
public void setWMSBalloonPosition(int scrollTop, int left, int height){
|
public void moveWMSBalloonPosition(){
|
||||||
// GWT.log("height: "+height +" scrollTop: "+scrollTop);
|
baloonWMS.hide();
|
||||||
scrollTop= scrollTop>0?scrollTop:1;
|
|
||||||
height = height>0?height:1;
|
|
||||||
int newPosition = scrollTop+height;
|
|
||||||
// GWT.log("new position: "+newPosition);
|
|
||||||
baloonWMS.setVisible(false);
|
baloonWMS.setVisible(false);
|
||||||
baloonWMS.show();
|
baloonWMS.showRelativeTo(lcWMS);
|
||||||
baloonWMS.setPopupPosition(left>0?left:1, newPosition-35);
|
|
||||||
baloonWMS.setVisible(true);
|
baloonWMS.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,12 +106,7 @@ public class GisViewerApp implements EntryPoint {
|
||||||
appController.getMainPanel().setHeight(rootHeight);
|
appController.getMainPanel().setHeight(rootHeight);
|
||||||
appController.getMainPanel().setWidth(rootWidth);
|
appController.getMainPanel().setWidth(rootWidth);
|
||||||
|
|
||||||
appController.getBaloonWMS().hide();
|
appController.moveWMSBalloonPosition();
|
||||||
int scroll = Window.getScrollTop();
|
|
||||||
int left = Window.getScrollLeft();
|
|
||||||
int height = Window.getClientHeight();
|
|
||||||
// GWT.log("onResize height: "+Window.getClientHeight());
|
|
||||||
appController.setWMSBalloonPosition(scroll, left, height);
|
|
||||||
|
|
||||||
// appController.getGisViewerPanel().getOpenLayersMap().centerMapCurrentZoom();
|
// appController.getGisViewerPanel().getOpenLayersMap().centerMapCurrentZoom();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue