Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
GTNPORTAL-3225 Height and width of Portlets are not affected after se…
Browse files Browse the repository at this point in the history
…tting
  • Loading branch information
sontran1228 authored and trongtt committed Sep 18, 2013
1 parent e6ef136 commit 850cc24
Showing 1 changed file with 6 additions and 8 deletions.
Expand Up @@ -60,9 +60,7 @@
String appDisplay = "block";
String appZIndex = "";
String windowWidth = uicomponent.getWidth();
if(windowWidth!= null && !windowWidth.contains("%") && !windowWidth.contains("px")) windowWidth += "px";
String windowHeight = uicomponent.getHeight();
if(windowHeight != null && !windowHeight.contains("%") && !windowHeight.contains("px")) windowHeight += "px";
String cssStyle = "style=\"";
cssStyle += "visibility: "+ visibility +";";
cssStyle += "display: "+ appDisplay +";";
Expand Down Expand Up @@ -167,14 +165,14 @@
if(windowState != WindowState.MINIMIZED) {
String cssStyle = "";
String windowWidth = uicomponent.getWidth();
if(windowWidth!= null && !windowWidth.contains("%") && !windowWidth.contains("px"))
{
cssStyle += "width: "+ windowWidth +"px;";
}
if(windowWidth != null)
{
cssStyle += "width: "+ windowWidth +";";
}
String windowHeight = uicomponent.getHeight();
if(windowHeight != null && !windowHeight.contains("%") && !windowHeight.contains("px"))
if(windowHeight != null)
{
cssStyle += "height: "+ windowHeight +"px;";
cssStyle += "height: "+ windowHeight +";";
}
%>
<div id="<%=portalMode == UIPortalApplication.NORMAL_MODE ? portletId : "EditMode-"+ portletId%>">
Expand Down

0 comments on commit 850cc24

Please sign in to comment.