Skip to content

Commit

Permalink
GADGETS-16: The maximised window height is not adjusted to a bigger s…
Browse files Browse the repository at this point in the history
…ize.
  • Loading branch information
jeffyu committed Jul 16, 2012
1 parent b9375b9 commit 4b4c9d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -112,6 +112,8 @@ public void onClick(ClickEvent event) {
hideUserPref(id);
showRestoreButton(id);
gadgetSpec.setWidth("100%");
gadgetSpec.setHeight("90%");
gadgetSpec.getElement().setAttribute("scrolling", "true");
gadgetSpec.setUrl("http://localhost:8080/gadget-server/gadgets/ifr?url=" + wmodel.getSpecUrl() + "?" + getCanvasView());
}
});
Expand All @@ -120,6 +122,9 @@ public void onClick(ClickEvent event) {
public void onClick(ClickEvent event) {
restoreWindow(id);
hideRestoreButton(id);
gadgetSpec.setWidth("100%");
gadgetSpec.setHeight("250px");
gadgetSpec.getElement().setAttribute("scrolling", "no");
gadgetSpec.setUrl("http://localhost:8080/gadget-server/gadgets/ifr?url=" + wmodel.getSpecUrl() + "?" + getHomeView());
}
});
Expand Down
2 changes: 1 addition & 1 deletion gadget-web/src/main/webapp/Application.css
Expand Up @@ -100,7 +100,7 @@ a {

.portlet-iframe {}

.portlet-canvas {position:absolute;width:95%; height:100%; z-index:1000;left: 10px;top:50px}
.portlet-canvas {position:absolute;width:95%; height:90%; z-index:1000;left: 10px;top:50px}

.portlet-preference {border-bottom: 1px solid grey}

Expand Down

0 comments on commit 4b4c9d8

Please sign in to comment.