mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-10 10:55:33 +00:00
docs(web): on SuggestionBanner.options.length
This commit is contained in:
parent
c2474bd2e5
commit
36df5ce77d
1 changed files with 4 additions and 0 deletions
|
|
@ -724,6 +724,10 @@ export class SuggestionBanner extends Banner {
|
|||
|
||||
let displayCount = Math.min(this.currentSuggestions.length, 8);
|
||||
for(let i=0; i < displayCount; i++) {
|
||||
// Note: options is an array of pre-built suggestion-hosting elements, with
|
||||
// fixed SUGGESTIONS_LIMIT length - not a length that dynamically changes to
|
||||
// match the number of suggestions available. Those without a suggestion
|
||||
// are hidden, but preserved.
|
||||
const opt = this.options[i];
|
||||
opt.minWidth = 0; // remove any previously-applied padding
|
||||
totalWidth += opt.collapsedWidth;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue