fix editbar position, stop popups from closing on open

This commit is contained in:
John McLear 2015-04-12 19:02:49 +01:00
parent ea7f4079fb
commit 06aa9e4db6
2 changed files with 4 additions and 5 deletions

View file

@ -54,6 +54,9 @@ a img {
width: 100%; width: 100%;
white-space: nowrap; white-space: nowrap;
height: 32px; height: 32px;
position:fixed;
top:0;
z-index:9;
} }
.toolbar ul { .toolbar ul {
position: absolute; position: absolute;

View file

@ -373,7 +373,7 @@ function Ace2Inner(editorInfo){
if (currentCallStack) if (currentCallStack)
{ {
console.error("Can't enter callstack " + type + ", already in " + currentCallStack.type); console.log("Can't enter callstack " + type + ", already in " + currentCallStack.type);
} }
var profiling = false; var profiling = false;
@ -3335,10 +3335,6 @@ function Ace2Inner(editorInfo){
evt.preventDefault(); evt.preventDefault();
} }
} }
//hide the dropdownso
if(window.parent.parent.padeditbar){ // required in case its in an iframe should probably use parent.. See Issue 327 https://github.com/ether/etherpad-lite/issues/327
window.parent.parent.padeditbar.toggleDropDown("none");
}
} }
function doReturnKey() function doReturnKey()