The Scene Builder’s snapping behavior can indeed be very frustrating when we're aiming for a precise alignment of UI elements. But, unfortunately there is no built-in option to turn off the snapping feature—it’s a known limitation.
The best workaround is to avoid using freeform layout panes like AnchorPane or Pane for complex layouts.
Instead, consider using structured layout containers like:
GridPane (for grid-style alignment).
VBox, or HBox (for vertical or horizontal layouts).
StackPane, BorderPane (for structured UIs).
These layouts automatically align elements without manual pixel-based adjustments and avoid snapping issues.
If you must use AnchorPane, it's better to set anchor constraints (like top, bottom, left, and right) directly in the Layout panel, rather than dragging elements, which can cause unpredictable resizing especially near the right edge, as you've experienced. Manually entering the layout values (X/Y or anchors) might seem tedious, but it ensures precision and avoids Scene Builder's snapping issues.