The search cursor on the Node Palette interface does not cover the (#6218)

searched keywords completely

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>
This commit is contained in:
tjmgd
2021-12-22 19:34:48 +00:00
committed by GitHub
parent 254906cd83
commit 5867e65720
@@ -85,7 +85,7 @@ namespace GraphCanvas
if (leftSpot < textRect.right())
{
int visibleLength = AZStd::GetMin(selectedTextLength, textRect.right() - leftSpot);
QRect highlightRect(textRect.left() + preSelectedTextLength, textRect.top(), visibleLength, textRect.height());
QRect highlightRect(textRect.left() + preSelectedTextLength + 4, textRect.top(), visibleLength, textRect.height());
// paint the highlight rect
painter->fillRect(highlightRect, options.palette.highlight());