Fix MenuButton location for dropdown menu

This commit is contained in:
Noah 2021-06-03 19:09:26 -07:00
parent ff76b831ad
commit 8f91971b62

View File

@ -88,7 +88,7 @@ func (w *MenuButton) Compute(e render.Engine) {
func (w *MenuButton) positionMenu(e render.Engine) { func (w *MenuButton) positionMenu(e render.Engine) {
var ( var (
// Position and size of the MenuButton button. // Position and size of the MenuButton button.
buttonPoint = w.Point() buttonPoint = AbsolutePosition(w)
buttonSize = w.Size() buttonSize = w.Size()
// Size of the actual desktop window. // Size of the actual desktop window.