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:
parent
cc169e6d6a
commit
e11eb818aa
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue