Validation messages can overflow the viewport when editors are narrow, positioned close to the right edge of the viewport, and the validation message is too wide to fit.
I request that you add some code to automatically keep the validation message visible and inside the viewport:
If validationMessagePosition is default, bottom or top:
- Before showing the validation message, measure the message width and determine if it will overflow the viewport.
- If the message will overflow and the message width is less than the viewport width, align the right side of the validation message to the right side of the editor.
I've demonstrated the desired behavior in this codepen along with unsatisfactory options provided by the current validationMessagePosition.