[SSE] Fix bug with layout for username-tip on the locked sheet.

This commit is contained in:
Julia Radzhabova 2016-11-24 15:30:38 +03:00
parent 09ce1fb212
commit fe0026bc30

View file

@ -936,12 +936,10 @@ define([
$(document.body).append(src);
showPoint = [
coAuthTip.x_point + coAuthTip.XY[0],
(is_sheet_lock) ? (coAuthTip.x_point + coAuthTip.rightMenuWidth) : (coAuthTip.bodyWidth - (coAuthTip.x_point + coAuthTip.XY[0])),
coAuthTip.y_point + coAuthTip.XY[1]
];
!is_sheet_lock && (showPoint[0] = coAuthTip.bodyWidth - showPoint[0]);
if (showPoint[1] > coAuthTip.XY[1] &&
showPoint[1] + coAuthTip.ttHeight < coAuthTip.XY[1] + coAuthTip.apiHeight) {
src.text(getUserName(data.asc_getUserId()));
@ -1042,6 +1040,7 @@ define([
me.documentHolder.cmpEl.offset().top - $(window).scrollTop()
];
me.tooltips.coauth.apiHeight = me.documentHolder.cmpEl.height();
me.tooltips.coauth.rightMenuWidth = $('#right-menu').width();
me.tooltips.coauth.bodyWidth = $(window).width();
}
},