Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a page into outline or using Insert dropdown positions it at 0;0 #43

Open
passiomatic opened this issue Feb 11, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@passiomatic
Copy link
Owner

passiomatic commented Feb 11, 2022

In the new web app version of Elm Designer, when user adds a new page by dropping it onto the outline view, or using Insert->Page menu item, the software sets its position to the upper left portion of the workspace (0;0).

This forces the user to "hunt" for the new page within the workspace or use "Show in workspace" context menu item to see it. We can improve the situation in various ways:

  1. Enter a special "insert mode" where the app waits for a click into the workspace to place the page. This is a good solution for the Insert->page scenario but it feels strange when user drops items into the outline, so we could fallback to point 2) in the latter case.
  2. Using current selected element figure out its containing page and place the new page next to it, on the right or on the left, depending of the space available. This potentially overlaps other pages, but user can always rearrange them. If the are no current selection (that is, the workspace is the current document node) place the page in the center of the visibile portion of the workspace.
  3. Always place the page in the middle on the visibile portion of the workspace. This is probably the less surprising, straight behavior to keep. It has the same limitation on the point 2), potentially it makes the new page overlapping existing pages.
@passiomatic passiomatic added the enhancement New feature or request label Feb 11, 2022
@passiomatic passiomatic self-assigned this Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant