This commit is contained in:
khaydarov 2016-05-11 17:21:32 +03:00
parent 20df011299
commit fb10222004

View file

@ -592,16 +592,12 @@ cEditor.toolbar = {
*/
move : function() {
var toolbarHeight ;
if (!cEditor.content.currentNode) {
return;
}
toolbarHeight = cEditor.nodes.toolbar.clientHeight || cEditor.toolbar.defaultToolbarHeight;
var newYCoordinate = cEditor.content.currentNode.offsetTop - cEditor.toolbar.defaultOffset - toolbarHeight;
var toolbarHeight = cEditor.nodes.toolbar.clientHeight || cEditor.toolbar.defaultToolbarHeight,
newYCoordinate = cEditor.content.currentNode.offsetTop - cEditor.toolbar.defaultOffset - toolbarHeight;
cEditor.nodes.toolbar.style.transform = "translateY(" + newYCoordinate + "px)";