<table><tr><td style="">Zren added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27337">View Revision</a></tr></table><br /><div><div><p>I used <tt style="background: #ebebeb; font-size: 13px;">Loader</tt> as I didn't want loading glyphs to block scrollbar responsiveness. <tt style="background: #ebebeb; font-size: 13px;">GridView</tt> reuses delegates, but I don't think it's the <tt style="background: #ebebeb; font-size: 13px;">MouseArea</tt> + <tt style="background: #ebebeb; font-size: 13px;">Label</tt> constructor that's slow. I think it's the "rendering the emoji glyph" in the GUI draw that is the root cause.</p>

<p>The cell spacing code re-renders the glyph (which is a slow process), which is why I removed it. Though I guess we can use <tt style="background: #ebebeb; font-size: 13px;">anchor.centerIn</tt>:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">MouseArea {
        id: mouse
        width: emojiView.cellWidth
        height: emojiView.cellHeight

        Label {
                anchor.centerIn: mouse
                width: emojiView.desiredSize
                height: emojiView.desiredSize
        }
}</pre></div>

<p>... to keep the cell spacing if that's a requirement.</p>

<p>Using <tt style="background: #ebebeb; font-size: 13px;">fontSizeMode: Qt.VerticalFit</tt> would make emoji's overflow horizontally. Various "hand + skin tone" emoji's that don't yet have a custom emoji are 2x wider than they are tall.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27337">https://phabricator.kde.org/D27337</a></div></div><br /><div><strong>To: </strong>Zren, apol, Plasma<br /><strong>Cc: </strong>broulik, davidedmundson, ngraham, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>