Commit dd08b6e8 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fixed editor height to have the same dimension of browser

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41396 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e9801c94
...@@ -34,6 +34,11 @@ function getCurrentObjectUrl(){\n ...@@ -34,6 +34,11 @@ function getCurrentObjectUrl(){\n
return window.location.href.split("?")[0];\n return window.location.href.split("?")[0];\n
}\n }\n
\n \n
function getWebEditorName(){\n
currentUrlSplitted = window.location.href.split("?")[0].split("/");\n
return currentUrlSplitted[currentUrlSplitted.length-1];\n
}\n
\n
function getUrlParameterList(){\n function getUrlParameterList(){\n
var argumentList = {};\n var argumentList = {};\n
resultList = window.location.href.split("?")[1].split("&");\n resultList = window.location.href.split("?")[1].split("&");\n
...@@ -105,6 +110,12 @@ $(document).ready(function(){\n ...@@ -105,6 +110,12 @@ $(document).ready(function(){\n
$("a#loading_message").show();\n $("a#loading_message").show();\n
setTimeout(checkConversion(), 1000);\n setTimeout(checkConversion(), 1000);\n
}\n }\n
if (getWebEditorName() == "WebPage_viewEditor" || getWebEditorName() == "WebTable_viewEditor")\n
$("div.content").css({"position":"fixed", "bottom": "0px", "left": "0px", "right": "0px"});\n
if (getWebEditorName() == "WebPage_viewEditor")\n
$("div.content").css({"top": "5em"});\n
if (getWebEditorName() == "WebTable_viewEditor")\n
$("div.content").css({"top": "7em"});\n
}\n }\n
$("a[name=\'document_title\']").html(getObjectPropertyValue("getTitle"));\n $("a[name=\'document_title\']").html(getObjectPropertyValue("getTitle"));\n
$("input#upload").click(function(event){\n $("input#upload").click(function(event){\n
......
...@@ -341,6 +341,7 @@ div.main-left, div.main-right, div.main {\n ...@@ -341,6 +341,7 @@ div.main-left, div.main-right, div.main {\n
\n \n
div.main {\n div.main {\n
margin-top: 0.5em;\n margin-top: 0.5em;\n
height: auto;\n
}\n }\n
button.delete {\n button.delete {\n
margin-top: 6px;\n margin-top: 6px;\n
...@@ -415,7 +416,6 @@ div.main-right div.content {\n ...@@ -415,7 +416,6 @@ div.main-right div.content {\n
height:27em;\n height:27em;\n
}\n }\n
\n \n
\n
div.listbox-body div.main-right tbody {\n div.listbox-body div.main-right tbody {\n
height:25.35em;\n height:25.35em;\n
overflow-x:hidden;\n overflow-x:hidden;\n
...@@ -869,6 +869,10 @@ input#submit_document {\n ...@@ -869,6 +869,10 @@ input#submit_document {\n
\n \n
a#loading_message {\n a#loading_message {\n
display: none;\n display: none;\n
}\n
\n
iframe#field_my_text_content___Frame {\n
height: 489px !important;\n
} }
]]></string> </value> ]]></string> </value>
......
119 120
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment