[scaling] regexp to avoid button scaling if it has svg-icon only

This commit is contained in:
maxkadushkin
2023-06-13 23:01:46 +03:00
parent c30b7da98f
commit a445f4b6ae

View File

@ -340,6 +340,9 @@ define([
me.style = me.options.style;
me.rendered = false;
// if ( /(?<!-)svg-icon(?!-)/.test(me.options.iconCls) )
// me.options.scaling = false;
if ( me.options.scaling === false && me.options.iconCls) {
me.iconCls = me.options.iconCls + ' scaling-off';
}