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

Moving anchors together with the object #24441

Open
QbieShay opened this issue Dec 18, 2018 · 3 comments
Open

Moving anchors together with the object #24441

QbieShay opened this issue Dec 18, 2018 · 3 comments

Comments

@QbieShay
Copy link
Contributor

Godot version:
11d7738

Issue description:
The only way to have an object resize proportionally with the screen (same behaviour as % in CSS) is to move the anchors around and have always margin 0.
The current workflow for this kind of task is clunky as there is no way to move the anchors together with the object in the 2D view.
Related to #1276

Proposal
I don't have a clear idea yet on how this feature should look like, as i foresee many problems for when people just want to move only the margins.
I'd like to discuss here and see if there is a nice solution to this problem
@groud @JFonS I'd like your opinion on this :)

@groud
Copy link
Member

groud commented Dec 19, 2018

Something like that probably makes sense, but like you, I am not sure how this feature would look like.
Maybe something like a "lock margins" mode that would move the anchors instead of the node.

@JFonS
Copy link
Contributor

JFonS commented Dec 19, 2018

I'm not too familiar with the anchors/margins model. But an option could be to add toggle in the "Layout" menu (in the viewport toolbar). When it's enabled, dragging the 8 points edits anchors instead of margins and size.

@groud
Copy link
Member

groud commented Dec 19, 2018

@JFonS note that one objective was to move the Layout menu to the inspector at some point. So that might not be the best solution to move it there. But indeed the feature would be the same. :)

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

4 participants