mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
[common] Fix bug 78984
This commit is contained in:
4
vendor/monaco/MonacoEditorCode.js
vendored
4
vendor/monaco/MonacoEditorCode.js
vendored
@ -160,7 +160,9 @@ var _postMessage = function(msg) {
|
||||
}
|
||||
//Calculate tooltip height(20px - height text row)
|
||||
var maxHeight = Math.min((window.innerHeight - 20) / 2, 250);
|
||||
styleTag.textContent = '.monaco-hover { max-height:' + maxHeight + 'px !important; }';
|
||||
var content = '.monaco-hover { max-height:' + maxHeight + 'px !important; }';
|
||||
content += '.scrollbar, .scrollbar .slider { pointer-events: auto !important; }';
|
||||
styleTag.textContent = content;
|
||||
};
|
||||
|
||||
_onResize();
|
||||
|
||||
Reference in New Issue
Block a user