Added onResize set height for iFrame in order to avoid page refresh delay

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@130455 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-07-18 09:42:22 +00:00
parent cc169e6d6a
commit e11eb818aa
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ public class CkanFramePanel extends FlowPanel{
frame = new Frame(ckanUrlConnector);
frame.getElement().setId(GCubeCkanDataCatalog.GCUBE_CKAN_IFRAME);
frame.setWidth("100%");
// frame.setHeight("100%");
// frame.getElement().getStyle().setOverflow(Overflow.HIDDEN);
// frame.getElement().setAttribute("scrolling", "no");
frame.getElement().getStyle().setBorderWidth(0, Unit.PX);

View File

@ -257,7 +257,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
int height = rootHeight - getTopPanelHeight();
if (this.ckanFramePanel.getFrame() != null) {
int newH = this.managementPanel != null &&this.managementPanel.getCurrentHeight() > 0? this.managementPanel.getOffsetHeight() + height : height;
// this.ckanFramePanel.getFrame().setHeight(newH + "px");
this.ckanFramePanel.getFrame().setHeight(newH + "px");
}
// workspace.setHeight(height+"px");
}