Fix downward scroll when deleting a character in a multi-line edit box when all of the lines fit inside of the edit box

This commit is contained in:
elasota
2020-11-02 22:22:31 -05:00
parent 2b3a9f1669
commit 3b91d0492e

View File

@@ -975,6 +975,9 @@ namespace PortabilityLayer
int32_t h = m_rect.Height(); int32_t h = m_rect.Height();
if (lowerY < h) if (lowerY < h)
m_scrollOffset.m_y -= lowerY - h; m_scrollOffset.m_y -= lowerY - h;
if (m_scrollOffset.m_y > 0)
m_scrollOffset.m_y = 0;
} }
} }