mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 14:24:43 -07:00
Fix picker with multiple editors
This commit is contained in:
parent
4a635c409f
commit
25fc135b2e
1 changed files with 2 additions and 2 deletions
|
@ -89,6 +89,8 @@ namespace Greenshot.Editor.Drawing
|
|||
|
||||
CreatePickerControl();
|
||||
|
||||
_parent.Controls.Add(_emojiPickerHost);
|
||||
|
||||
var absRectangle = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height);
|
||||
var displayRectangle = Parent.ToSurfaceCoordinates(absRectangle);
|
||||
_emojiPickerHost.Width = 0; // Trick to hide the picker's button
|
||||
|
@ -114,8 +116,6 @@ namespace Greenshot.Editor.Drawing
|
|||
_emojiPickerHost = new ElementHost();
|
||||
_emojiPickerHost.Dock = DockStyle.None;
|
||||
_emojiPickerHost.Child = _emojiPicker;
|
||||
|
||||
_parent.Controls.Add(_emojiPickerHost);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue