loleaflet: force toolbar resizes when update custom ...
combo box toolbar items. Change-Id: Ib0e6bd5b6b59ef7fb4afa32ea0e16273b72cf503
This commit is contained in:
parent
58b3228292
commit
f1440cd57b
1 changed files with 3 additions and 0 deletions
|
@ -2026,6 +2026,7 @@ function updateCommandValues(targetName) {
|
|||
});
|
||||
$('.styles-select').val(stylesSelectValue).trigger('change');
|
||||
$('.styles-select').on('select2:select', onStyleSelect);
|
||||
w2ui['editbar'].resize();
|
||||
}
|
||||
|
||||
if (targetName === 'fonts' && $('.fonts-select option').length === 1) {
|
||||
|
@ -2048,6 +2049,7 @@ function updateCommandValues(targetName) {
|
|||
});
|
||||
$('.fonts-select').on('select2:select', onFontSelect);
|
||||
$('.fonts-select').val(fontsSelectValue).trigger('change');
|
||||
w2ui['editbar'].resize();
|
||||
}
|
||||
|
||||
if (targetName === 'fontsizes' && $('.fontsizes-select option').length === 1) {
|
||||
|
@ -2061,6 +2063,7 @@ function updateCommandValues(targetName) {
|
|||
updateFontSizeList(fontsSelectValue);
|
||||
}
|
||||
$('.fontsizes-select').val(fontsizesSelectValue).trigger('change');
|
||||
w2ui['editbar'].resize();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue