IDEMPIERE-1735 The window tab disappears when selecting a link in the online help.

This commit is contained in:
Heng Sin Low 2014-03-22 09:33:49 +08:00
parent b2c4c429a9
commit ad9534725f
1 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import org.compiere.util.Env;
import org.compiere.util.Msg; import org.compiere.util.Msg;
import org.compiere.util.WebDoc; import org.compiere.util.WebDoc;
import org.zkoss.zul.Center; import org.zkoss.zul.Center;
import org.zkoss.zul.Div;
import org.zkoss.zul.Html; import org.zkoss.zul.Html;
public class HelpWindow extends Window { public class HelpWindow extends Window {
@ -65,8 +66,11 @@ public class HelpWindow extends Window {
centerPane.setAutoscroll(true); centerPane.setAutoscroll(true);
borderlayout.appendChild(centerPane); borderlayout.appendChild(centerPane);
Div div = new Div();
centerPane.appendChild(div);
div.setStyle("width: 100%; height: 100%; overflow: auto;");
Html html = new Html(); Html html = new Html();
centerPane.appendChild(html); div.appendChild(html);
WebDoc doc = WebDoc.create(true); WebDoc doc = WebDoc.create(true);