---
url: "https://vueda.dev/v3/reference/api/js/utils/stickyStackLayout/functions/resolveStickyStack.md"
title: "resolveStickyStack"
---

# resolveStickyStack

## Overview

Resolve the layout for a stack of sticky bars pinned to one edge.

## Signature

`resolveStickyStack(bars, edge)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-bars">bars</span> | `StickyStackBar[]` | yes | Bars in stack order from the pinned edge outward (for the top edge, top to bottom; for the bottom edge, bottom to top). |
| <span id="param-edge">edge</span> | `"top" \| "bottom"` | no | The viewport edge the stack pins to. Defaults to `top`. |

### Returns

[StickyStackLayout](/v3/reference/api/js/utils/stickyStackLayout/types/StickyStackLayout.md)

The per-bar layout and the visible extent.

## Source

`client/lib/utils/stickyStackLayout.js:45`
