Refactoring styles loading
This commit is contained in:
parent
ffee243d9e
commit
663d39b55c
|
@ -1317,6 +1317,7 @@ define([
|
||||||
dataHintOffset: '-16, -4',
|
dataHintOffset: '-16, -4',
|
||||||
enableKeyEvents: true,
|
enableKeyEvents: true,
|
||||||
additionalMenuItems: [this.listStylesAdditionalMenuItem],
|
additionalMenuItems: [this.listStylesAdditionalMenuItem],
|
||||||
|
delayRenderTips: true,
|
||||||
itemTemplate: _.template([
|
itemTemplate: _.template([
|
||||||
'<div class="style" id="<%= id %>">',
|
'<div class="style" id="<%= id %>">',
|
||||||
'<div style="background-image: url(<%= imageUrl %>); width: ' + itemWidth + 'px; height: ' + itemHeight + 'px;"></div>',
|
'<div style="background-image: url(<%= imageUrl %>); width: ' + itemWidth + 'px; height: ' + itemHeight + 'px;"></div>',
|
||||||
|
|
|
@ -1029,6 +1029,7 @@ define([
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset: '-16, -4',
|
dataHintOffset: '-16, -4',
|
||||||
|
delayRenderTips: true,
|
||||||
itemTemplate: _.template([
|
itemTemplate: _.template([
|
||||||
'<div class="style" id="<%= id %>">',
|
'<div class="style" id="<%= id %>">',
|
||||||
'<div class="item-theme" style="' + '<% if (typeof imageUrl !== "undefined") { %>' + 'background-image: url(<%= imageUrl %>);' + '<% } %> background-position: 0 -<%= offsety %>px;"></div>',
|
'<div class="item-theme" style="' + '<% if (typeof imageUrl !== "undefined") { %>' + 'background-image: url(<%= imageUrl %>);' + '<% } %> background-position: 0 -<%= offsety %>px;"></div>',
|
||||||
|
|
|
@ -940,6 +940,7 @@ define([
|
||||||
dataHint : '1',
|
dataHint : '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
dataHintOffset : '-16, -4',
|
dataHintOffset : '-16, -4',
|
||||||
|
delayRenderTips: true,
|
||||||
beforeOpenHandler: function(e) {
|
beforeOpenHandler: function(e) {
|
||||||
var cmp = this,
|
var cmp = this,
|
||||||
menu = cmp.openButton.menu,
|
menu = cmp.openButton.menu,
|
||||||
|
|
Loading…
Reference in a new issue