Commit f233b8d9 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

model.js: Vertical placement of tag selector

.height() doesn't take into account borders and margins.
To prevent the tag selector from going outside the screen we
should use outerHeight()
parent 8ee4c92d
......@@ -1828,7 +1828,7 @@ changeCloneNotation: function(cloneNotationType) {
//replace tagSeelector
var tagSelectorH = $(this.tagSelector).height()
var tagSelectorH = $(this.tagSelector).outerHeight()
var minTop = 40;
var maxTop = Math.max(40, $(window).height()-tagSelectorH);
var top = e.clientY - tagSelectorH/2;
......
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