[forms] changed events from desktop app

This commit is contained in:
Maxim Kadushkin 2021-12-01 19:46:32 +03:00
parent 77a87073b4
commit c7f78c67db

View file

@ -1822,10 +1822,8 @@ define([
} else
if (/window:features/.test(cmd)) {
var obj = JSON.parse(param);
if (_.isNumber(obj.skiptoparea)) {
$('.toolbar.top').css('top', obj.skiptoparea);
$('.viewer.top').css('top', 40 + obj.skiptoparea);
$('#title-doc-name')[obj.skiptoparea > 0 ? 'hide' : 'show']();
if ( obj.singlewindow !== undefined ) {
$("#title-doc-name")[obj.singlewindow ? 'hide' : 'show']();
}
}
};