#✅ | X position not updating when setting anchor point.

1 messages · Page 1 of 1 (latest)

vernal houndBOT
#

The editor just shows you the element’s position relative to whatever anchor you pick. If you want the element to actually sit in Minecraft’s center, anchor it to the “Center of Screen” and then set its X value to 0 (so it sits exactly on that anchor). Right now it’s still offset because you haven’t zeroed the offset after changing the anchor. If the element’s size changes later, enable Sticky Anchors on it so the center stays aligned.

For reference, the Positioning guide explains how anchor offsets work and how to keep things centered: Positioning Elements

chrome tangle
#

Its anchor is set to center of screen, but the X position is too high, the element is near the center

vernal houndBOT
# chrome tangle Its anchor is set to center of screen, but the X position is too high, the eleme...

If the anchor is already “Center of Screen” but the X value is still high, that just means the element’s offset from that anchor is not zero. Just set the X position to 0 so it’ll sit exactly on the center anchor, then move the element left/right from there if needed.
If you want it to stay centered when its size changes, right-click the element and enable Sticky Anchors (see the Positioning guide about keeping things centered).

chrome tangle
#

when i set x to 0 on the button, it goes all the way to the left, instead of center, even though its anchor is set to center, and sticky anchors are enabled.

vernal houndBOT
# chrome tangle when i set x to 0 on the button, it goes all the way to the left, instead of cen...

Ah, that makes sense—if you just swap the anchor and then type 0 into X, FancyMenu still keeps the old offset until you reset it. Right-click the button, go to Anchor Point → Reset Position to Anchor, and it will snap to the center anchor you picked. After that you can fine-tune the X offset (0 = true center) while Sticky Anchors keeps it centered when the element resizes.

If you need a refresher, the Positioning guide explains how anchors, offsets, and Sticky Anchors work together: Positioning Elements

chrome tangle
#

That isnt an option.

vernal houndBOT
# chrome tangle That isnt an option.

I see. Could you tell me what element you’re working on and which Drippy/FancyMenu version you have installed? The “Reset Position to Anchor” entry should show up in the element’s anchor sub-menu when that element is selected—if you don’t see it, it could mean the element type (e.g., a Vanilla button) doesn’t expose that option, or you might be editing a universal layout where some options behave differently.

A screenshot of the right-click menu on the element would help too. Once I know the exact situation I can point you to the right steps.

#

✅ | X position not updating when setting anchor point.