mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 23:35:00 +08:00
Fix smart annotation position
This commit is contained in:
parent
7655dd0bea
commit
d32201ad58
1 changed files with 3 additions and 1 deletions
|
@ -381,7 +381,9 @@ var SmartAnnotation = (function() {
|
||||||
function init() {
|
function init() {
|
||||||
$(field)
|
$(field)
|
||||||
.on("reposition.atwho", function(event, flag, query) {
|
.on("reposition.atwho", function(event, flag, query) {
|
||||||
query.$el.find('.atwho-view').css('left', (flag.left + $(window).scrollLeft()) + 'px');
|
if (query.$inputor.offset().left > $(window).width()) {
|
||||||
|
query.$el.find('.atwho-view').css('left', (flag.left + $(window).scrollLeft()) + 'px');
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.atwho({
|
.atwho({
|
||||||
at: '@',
|
at: '@',
|
||||||
|
|
Loading…
Reference in a new issue