diff --git a/browser/src/control/jsdialog/Util.OnDemandRenderer.ts b/browser/src/control/jsdialog/Util.OnDemandRenderer.ts index 5ee45128d..6d338c9bc 100644 --- a/browser/src/control/jsdialog/Util.OnDemandRenderer.ts +++ b/browser/src/control/jsdialog/Util.OnDemandRenderer.ts @@ -33,6 +33,7 @@ function onDemandRenderer( const placeholderImg = placeholder as HTMLImageElement; placeholderImg.src = cachedComboboxEntries.images[entryId]; placeholderImg.alt = entryText; + placeholderImg.title = entryText; requestRender = !cachedComboboxEntries.persistent; } @@ -58,7 +59,7 @@ function onDemandRenderer( var observer = new IntersectionObserver(onIntersection, { root: null, - threshold: 0.5, // percentage of visible area + threshold: 0.01, // percentage of visible area }); observer.observe(placeholder); diff --git a/browser/src/control/jsdialog/Widget.Combobox.js b/browser/src/control/jsdialog/Widget.Combobox.js index 473475c6e..d21944b3f 100644 --- a/browser/src/control/jsdialog/Widget.Combobox.js +++ b/browser/src/control/jsdialog/Widget.Combobox.js @@ -282,6 +282,7 @@ JSDialog.combobox = function (parentContainer, data, builder) { var img = L.DomUtil.create('img', '', dropdown[pos]); img.src = builder.rendersCache[data.id].images[pos]; img.alt = entries[pos].text; + img.title = entries[pos].text; } }; diff --git a/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js b/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js index 8bed552e6..b8990694f 100644 --- a/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js +++ b/cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js @@ -43,6 +43,7 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() { }); it('Apply style.', function() { + cy.cGet('#toolbar-up .ui-scroll-right').click(); helper.setDummyClipboardForCopy(); cy.cGet('.notebookbar.ui-iconview-entry img[title=Title]').click(); refreshCopyPasteContainer();