Fix weird incorrect menu position problem

This commit is contained in:
Jaex 2016-10-05 01:40:22 +03:00
parent 3f5f01804e
commit d1d6ef0513

View file

@ -435,6 +435,9 @@ private void CreateMenu()
};
tsddbShapeOptions.DropDownItems.Add(tslnudPixelateSize);
// In dropdown menu if only last item is visible then menu opens at 0, 0 position on first open, so need to add dummy item to solve this weird bug...
tsddbShapeOptions.DropDownItems.Add(new ToolStripSeparator() { Visible = false });
tsbUndoObject = new ToolStripButton("Undo object");
tsbUndoObject.DisplayStyle = ToolStripItemDisplayStyle.Image;
tsbUndoObject.Image = Resources.arrow_circle_225_left;