Completed
Last Updated: 14 Feb 2020 11:37 by ADMIN
Release R1 2020 SP1
Michael Tissington
Created on: 05 Feb 2020 15:08
Category: RichTextBox
Type: Feature Request
0
RichTextBox: PasteOptionsPopup should move when the parent Window is moved or resized.
The Popup needs to be triggered to recalculate its position.

The following fixes the issue in PasteOptionsPopup.cs
 
        private bool SetLocation(Point location)
        {
            if (this.HorizontalOffset != location.X || this.VerticalOffset != location.Y)
            {
                this.HorizontalOffset = location.X;
                this.VerticalOffset = location.Y;
                return true;
            }
            // added the following 5 lines to trigger the popup to recalculate it's location
            else
            {
                this.VerticalOffset++;
                this.VerticalOffset--;
            }
            return false;
        }
0 comments