Skip to Content
Visual Editor

Pinning Zero-Shift & Adaptive Sizing

Learn omnidirectional pinning in zoom-immune Parent Space, Zero-Shift anchor toggling, Grid cell alignment, and Fill, Fit, Fixed, Rel sizing with Min/Max bounds.

Implemented · Live in Studio

Zentiogrid pairs structural flex/grid sizing (Stack and Grid) with deterministic edge pinning so floating cards, badges, sticky bars, and bento grids never drift unexpectedly across screen ratios.

Interactive Zero-Shift pinning showcase testing Top+Left, Top+Right, Center Axis, and Stretch Both
Pinning ModelZero-Shift Pinning principle: switch anchor edges dynamically while computing exact offsets in Parent Space.

Position Types (Relative, Absolute, Fixed) & Zero-Shift Pins

In the Right Inspector Position section (PositionPinWidget), choose how any selected layer attaches to its container:

  • Relative: Participates normally inside Stack or flow order.
  • Absolute: Positions relative to its nearest positioning parent using omnidirectional edge pins (Top T, Right R, Bottom B, Left L), Center, or dual both edge stretch — measured accurately in zoom-immune Parent Space (clientWidth / clientHeight).
  • Fixed: Locks relative to the viewport (for persistent headers or floating action elements).
  • X: Auto / Manual & Y: Auto / Manual: Toggle axis pin locking directly below the visual widget (pin-mode-toggle-x, pin-mode-toggle-y). Switching edge pins uses Zero-Shift Conversion, recalculating pixel offsets behind the scenes so elements never visually jump when changing anchors.
Switching Position Type from relative to absolute inside Studio Inspector to illuminate T/R/B/L pins and X/Y lock toggles
DemoSwitch Position Type to absolute in Inspector to unlock omnidirectional T/R/B/L edge pins and X/Y Auto/Manual locks.

Grid Cell Alignment

Whenever the selected layer sits directly inside a Grid container (isChildOfGrid), Zentiogrid automatically swaps the pin matrix for the Grid Alignment Widget, letting you align individual cells cleanly across alignSelf and justifySelf without extra wrapper frames.

Sizing Modes & Clamp Bounds (Min / Max)

Configure width and height directly under Size (InspectorSizeSection):

Right Inspector: combine Position Type with Width/Height sizing modes (Fill, Fit, Fixed, Rel %) and Min/Max bounds.
Sizing ModeBehaviorIdeal Use Case
FillExpands across remaining space inside a Stack or Grid parentMulti-column feature cards and fluid containers
FitShrink-wraps tightly around inner text or child layersButtons, pills, badges, and headlines
FixedLocks exact pixel dimensions (px) regardless of siblingsFixed avatars, icons, and square badges
Rel (%)Calculates percentage width/height relative to parent boundsAsymmetric split hero panes and responsive image frames

Combine Rel/Fill with Min/Max Clamps

Click + Add... inside Size to attach Min Width, Max Width, Min Height, or Max Height constraints so body copy stays comfortably readable on wide monitors while shrinking gracefully on phones.

app.zentiogrid.com

Inspect live pinning & sizing in Studio

Select any button or Stack card in Studio and switch Position Type or Size constraints in real time.

Open Visual Inspector