# Fixed position: fixed?

**URL:** <https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181>\
**Category:** UXP Plugin API\
**Created:** [August 22, 2019, 2:13pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181 "2019-08-22T14:13:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [August 22, 2019, 2:13pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/1 "2019-08-22T14:13:42Z")

</div>

We know that UI elements with a fixed position cause layout issues even resulting in a rejection in case of plugins submission.  
Is there any chance that it will be fixed in the next XD release?

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [August 22, 2019, 3:40pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/2 "2019-08-22T15:40:43Z")

</div>

I believe this was fixed in XD 22, or will be fixed in XD 23. @kerrishotts to confirm,

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [August 22, 2019, 4:23pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/3 "2019-08-22T16:23:00Z")

</div>

Should be fixed in XD 23. I’ll double check.

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [August 22, 2019, 8:07pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/4 "2019-08-22T20:07:25Z")

</div>

Perfect, thank you very much.

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [October 3, 2019, 7:35am UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/5 "2019-10-03T07:35:25Z")

</div>

Can we submit now using fixed position or such plugins would be still rejected?

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [October 3, 2019, 2:44pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/6 "2019-10-03T14:44:41Z")

</div>

@kerrishotts to confirm

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [October 8, 2019, 7:46pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/7 "2019-10-08T19:46:03Z")

</div>

@kerrishotts, can we use fixed positions now?

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [October 9, 2019, 2:47pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/8 "2019-10-09T14:47:11Z")

</div>

How does this correspond to `position: absolute`, which seems to work in 21/22?

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [October 9, 2019, 3:16pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/9 "2019-10-09T15:16:43Z")

</div>

`position: fixed` allows content to be positioned irrespective of scroll position, whereas `position: absolute` just positions content based on the nearest positioned element, while allowing the content to scroll.

In XD 21/22, the fixed positioning offset was based on the plugins _panel_ coordinates, not the plugin’s coordinates. This meant that you needed to add like 90 or 100px vertically to avoid the header that plugins have in the panel. It also allowed the plugin to escape its own UI container.

In XD 23/24, you can now use `position: fixed`. In fact, there are some plugins that clearly used it and are now slightly broken due to use. If you do use `position: fixed` _be sure_ to detect the version of XD or set your plugin’s `minVersion` to 23, since XD 21/22 will render differently than 23/24.

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [October 10, 2019, 7:43pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/10 "2019-10-10T19:43:09Z")

</div>

I’ve just tried, but page navigation and footer with fixed position scroll with the plugin’s content, though initially well positioned at the bottom.  
Tested in XD 24 Prerelease (Mac).

2 screenshots showing the result:

 ![fixed_position_OK](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/1456a59eb5988392119bb3ceb58b697047716c06.png) ![fixed_position_SCROLL](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/55026dee955fc1f3a71a75ee70a8ec21cf7276e6.png)

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [October 10, 2019, 10:31pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/11 "2019-10-10T22:31:11Z")

</div>

Where’s the XD 24 prerelease? Special access?

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [October 11, 2019, 1:32pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/12 "2019-10-11T13:32:33Z")

</div>

Ah, I see it now in the private prerelease forum. Wasn’t there two days ago…

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [October 11, 2019, 3:05pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/13 "2019-10-11T15:05:55Z")

</div>

It just went up – sending out an announcement on it today.

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [October 11, 2019, 3:06pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/14 "2019-10-11T15:06:26Z")

</div>

… and depending on which group you’re a part (users or developers), you may get different prereleases…

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [October 11, 2019, 3:07pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/15 "2019-10-11T15:07:03Z")

</div>

Looks like one hell of a release–congrats to the whole team!

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [October 11, 2019, 4:46pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/16 "2019-10-11T16:46:53Z")

</div>

@kerrishotts, any thoughts about fixed elements that scroll?

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [October 15, 2019, 7:13pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/17 "2019-10-15T19:13:44Z")

</div>

From the Adobe Tech Blog on Medium:

> - Fixed the issue where plugins using `position:fixed` could take over the entire plugin panel. This means you can now safely use `position: fixed` in your plugins ( _if your_`host.minVersion`_is_`23`_or greater_ ). Also note that you also don’t need any offset to account for the plugin panel header.

What could make my elements scroll with the entire panel?

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [October 17, 2019, 7:07pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/18 "2019-10-17T19:07:53Z")

</div>

FYI: You can create your own fixed positioning by moving an element outside of the group it’s part of.

For example, change this:

```
<div id="myContainer">
   <div id="fixedElement" style="position:fixed">...</div>
   ...
</div>

```

to this:

```
<div id="myContainer">
   ...
</div>
<div id="fixedElement" style="position:absolute;top:0;left:0" >...</div>
```

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [October 17, 2019, 7:14pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/19 "2019-10-17T19:14:45Z")

</div>

And that’s all inside a panel or modal, of course.

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [October 17, 2019, 10:32pm UTC](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/20 "2019-10-17T22:32:55Z")

</div>

Very strange. They’re already out of any container as they are appended to the panel itself. Tried both with ‘fixed’ and ‘absolute’: they keep scrolling with the rest of the content.

[Next page](https://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181.md?page=2)
