Actions
Bug #14347
closedIncorrect WSuggestionPopup dropdown button selection area for non-Bootstrap 5 themes
Start date:
02/19/2026
Due date:
% Done:
0%
Estimated time:
Description
WSuggestionPopup.js uses the following function to determine if the user clicked on the dropdown button:
function calcButtonWidth(edit) {
if (isBS5()) {
try {
const style = getComputedStyle(edit);
const widthPx = parseInt(style.backgroundSize.match(/^([0-9]+)px ([0-9]+)px$/)[1], 10);
const rightOffsetPx = parseInt(style.backgroundPositionX.match(/^calc[(]100% - ([0-9]+)px[)]$/)[1], 10);
return widthPx + rightOffsetPx;
} catch (e) {
return 28;
}
} else {
return 16;
}
}
Non-Bootstrap 5 themes use a fixed width of 16px.
However, the suggestion dropdown buttons have larger sizes:
- Bootstrap 2: icon width 20px
- Bootstrap 3: icon width 20px
- Polished theme: icon width 19px
- Default theme: icon width 19px
As a consequence, clicking on the left-hand size of the button does not show the dropdown menu.
Proposed change: increase the default width to 20px for non-Bootstrap 5 themes.
Updated by Marnik Roosen 3 days ago
- Status changed from InProgress to Review
- Assignee deleted (
Marnik Roosen) - Target version set to 4.12.3
Updated by Romain Mardulyn 2 days ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Romain Mardulyn to Marnik Roosen
Updated by Romain Mardulyn 2 days ago
- Status changed from Implemented @Emweb to Closed
Actions