Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

Window getMaximumSize and getMinimumSize return array instead of object #353

Open
andy-lee-eng opened this issue Sep 28, 2017 · 2 comments

Comments

@andy-lee-eng
Copy link
Collaborator

Window.getBounds() returns a Promise for a Rectangle (top, left, width, height), but the functions getMaximumSize() and getMinimumSize() both return a 2-value array instead.

They should probably return a Size (width, height) instead.

@andy-lee-eng
Copy link
Collaborator Author

getPosition and getSize also return an array of numbers instead of position/size objects

@andy-lee-eng
Copy link
Collaborator Author

In fact getPosition and getSize are a bit redundant when getBounds includes all the same information.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant