-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Is your feature request related to a problem? Please describe.
When creating a new ClassicyWindow, sometimes it would be beneficial to not specify the window position in terms of pixels, but rather in practical, subjective terms. These could include "left", "right", "center", "top", "bottom" or even "auto".
Describe the solution you'd like
Currently, the ClassicyStoreSystemAppWindow's position attribute stores an array of two numbers ([number, number]) to describe the window's top-left x and y position, in pixels. As well, the <ClassicyWindow> component also accepts a 2-length array for the attribute initialPosition. Instead, the <ClassicyWindow> component's initialPosition attribute should also accept a string enum as well. These should be translated to their appropriate pixel values before the ClassicyWindowOpen event is sent.
The options should include:
- "top": Applicable to the Y (vertical) position, the top of the visible
<ClassicyDesktop>area. - "bottom": Applicable to the Y (vertical) position, the bottom of the visible
<ClassicyDesktop>area. - "left": Applicable to the X (horizontal) position, the left of the visible
<ClassicyDesktop>area - "right": Applicable to the X (horizontal) position, the right of the visible
<ClassicyDesktop>area - "center" Applicable to both the X and Y (vertical) position, the center of the visible
<ClassicyDesktop>area, minus the width and/or height of theClassicyWindow.