Fix hints for styles list

This commit is contained in:
Julia Radzhabova 2021-09-20 01:44:09 +03:00
parent 754bc9c8bc
commit 302db500de
4 changed files with 4 additions and 4 deletions

View file

@ -252,7 +252,7 @@ Common.UI.HintManager = new(function() {
var _getHints = function() {
var docH = Common.Utils.innerHeight() - 20,
docW = Common.Utils.innerWidth() - 20,
docW = Common.Utils.innerWidth(),
topSection = _currentLevel !== 0 && $(_currentSection).length > 0 ? $(_currentSection).offset().top : 0,
bottomSection = _currentLevel !== 0 && $(_currentSection).length > 0 ? topSection + $(_currentSection).height() : docH;

View file

@ -1303,7 +1303,7 @@ define([
// hint : this.tipParagraphStyle,
dataHint: '1',
dataHintDirection: 'bottom',
dataHintOffset: '-16, 0',
dataHintOffset: '-16, -4',
enableKeyEvents: true,
additionalMenuItems: [this.listStylesAdditionalMenuItem],
beforeOpenHandler: function (e) {

View file

@ -1001,7 +1001,7 @@ define([
lock: [_set.themeLock, _set.lostConnect, _set.noSlides],
dataHint: '1',
dataHintDirection: 'bottom',
dataHintOffset: '-16, 0',
dataHintOffset: '-16, -4',
beforeOpenHandler: function (e) {
var cmp = this,
menu = cmp.openButton.menu,

View file

@ -908,7 +908,7 @@ define([
lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selSlicer, _set.lostConnect, _set.coAuth, _set['FormatCells']],
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset : '-16, 0',
dataHintOffset : '-16, -4',
beforeOpenHandler: function(e) {
var cmp = this,
menu = cmp.openButton.menu,