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

Better handling of sizes when dropping contents #8

Open
mfreiholz opened this issue Apr 4, 2016 · 0 comments
Open

Better handling of sizes when dropping contents #8

mfreiholz opened this issue Apr 4, 2016 · 0 comments

Comments

@mfreiholz
Copy link
Owner

Currently it's unpredictable. It might be good to use the same width/height as the parent content, if dropped on existing content. In case of outer-drop we might use the preferred size of the content.

Handle content drops (Sizing)

  • Case: Dropping A to the bottom or top of B (vertical split):
    • A will use the width of B
    • A will use it's own height, if it is not greater than the half height of B. Otherwise it will use the half height of B.
  • Case: Dropping A to the left or right of B (horizontal split)
    • ... Same as before, but swap the words "height" with "width" :-)
  • Case: Dropping A to the outer top or bottom edge (full vertical split):
    • A will use the full width of the container
    • A will use it's own height, if it is not greater than the half height of the entire container. Otherwise it will use the half height of the container.
  • Case: Dropping A to the outer left or right edge (full horizontal split):
    • ... Same as before, but swap the words "height" with "width" :-)
@mfreiholz mfreiholz added this to the 0.2 beta milestone Apr 4, 2016
@mfreiholz mfreiholz modified the milestones: v1.0.0, Idea Collection Oct 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant