mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 00:38:39 +08:00
Merge pull request 'Repaint buttons' (#453) from fix/bugfix into release/v9.0.0
This commit is contained in:
@ -643,6 +643,8 @@ define([
|
||||
var ariaLabel = me.options.ariaLabel ? me.options.ariaLabel : ((typeof me.options.hint == 'string') ? me.options.hint : me.options.hint[0]);
|
||||
$btn.attr('aria-label', ariaLabel);
|
||||
}
|
||||
|
||||
Common.NotificationCenter.on('uitheme:changed', this.onThemeChanged.bind(this));
|
||||
}
|
||||
|
||||
me.rendered = true;
|
||||
@ -1035,6 +1037,13 @@ define([
|
||||
if (!this.disabled) {
|
||||
this.split ? this.cmpEl.attr('tabindex', this.tabindex) : this.$el && this.$el.find('button').addBack().filter('button').attr('tabindex', this.tabindex);
|
||||
}
|
||||
},
|
||||
|
||||
onThemeChanged: function() {
|
||||
if (this.options.width>0 && this.rendered) {
|
||||
var el = this.cmpEl;
|
||||
el && el.hasClass('btn-group') && el.hasClass('split') && $('button:first', el).css('width', this.options.width - $('[data-toggle^=dropdown]', el).outerWidth());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user