在用Pentaho CDE的時候大家可能都碰到過編輯Html的時候找不到ok按鈕的情況,這是什麼原因造成的呢,經過實驗發現原來是彈出的編輯窗口太大了無法顯示下面的 ok按鈕而頁面也沒有出現滾動條,知道了原因就可以找到解決辦法,解決辦法有兩種(也可能有第三種):將窗口高度調小;設置窗口過大時滾動。
這裏我只說第一種:找到pentaho-solutions\system\pentaho-cdf-dd\js目錄下的cdf-dd-tablemanager.js文件將
var _inner ='<div style="height:450px;">...'
中的height:450px 修改成400px或更小的值
myself.editor = new CodeEditor(); myself.editor.initEditor("codeArea"); myself.editor.setTheme(null);//if null the default is used ("ace/theme/twilight" is the default) myself.editor.setMode(myself.getCodeType()); myself.editor.setContents(myself.value); $('.popup').css("width","820px"); $('.popup').css('min-height','500px'); $('.popup').css('min-width','820px');
將這裏的min-height 的值改成400px或更小的值保存重啓Server再看看吧