# Text inputs lose focus when panel is resized

**URL:** <https://forums.creativeclouddeveloper.com/t/text-inputs-lose-focus-when-panel-is-resized/1374>\
**Category:** UXP Plugin API\
**Tags:** api-feedback\
**Created:** [October 29, 2019, 11:56am UTC](https://forums.creativeclouddeveloper.com/t/text-inputs-lose-focus-when-panel-is-resized/1374 "2019-10-29T11:56:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 30, 2019, 9:54pm UTC](https://forums.creativeclouddeveloper.com/t/text-inputs-lose-focus-when-panel-is-resized/1374/4 "2019-10-30T21:54:04Z")

</div>

Now it works.

My actual code:

```
container.style.position = "fixed";
container.style.top = 0;
container.style.bottom = 110;
container.style.overflowY = "scroll"; 

```

It seems it has also fixed the sticky footer issue.

> [@Fixed position: fixed?](http://forums.creativeclouddeveloper.com/t/fixed-position-fixed/1181/25):
>
> Oooooooh… Ok, I think we have a bug here. The fix in XD 23, in particular, was related to the fact that position:fixed could go out-of-bounds of the plugin. Assuming no other positioned ancestor elements, elements that are fixed are positioned now based on the container (not the entire plugin panel) Where it does fall apart is when the overall plugin height is larger than the container – fixed positioning doesn’t work there. So for now, I’d use fixed positioning only in the case of trying to …

Thank you @cpryland and @kerrishotts.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/text-inputs-lose-focus-when-panel-is-resized/1374)._
