# Get view height to manage docked dimension

**URL:** <https://forum.inductiveautomation.com/t/get-view-height-to-manage-docked-dimension/93324>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 17, 2024, 9:20am UTC](https://forum.inductiveautomation.com/t/get-view-height-to-manage-docked-dimension/93324 "2024-07-17T09:20:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [July 17, 2024, 9:20am UTC](https://forum.inductiveautomation.com/t/get-view-height-to-manage-docked-dimension/93324/1 "2024-07-17T09:20:06Z")

</div>

Good morning,

I wonder how I can get the flex container height so to alter the docked with `system.perspective.alterDock` dimension properly.

Thank you

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [July 17, 2024, 9:49am UTC](https://forum.inductiveautomation.com/t/get-view-height-to-manage-docked-dimension/93324/2 "2024-07-17T09:49:25Z")

</div>

This sounds like an xy problem.  
Why do you need this ? Are you changing the docked view dynamically ?

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [July 17, 2024, 9:53am UTC](https://forum.inductiveautomation.com/t/get-view-height-to-manage-docked-dimension/93324/3 "2024-07-17T09:53:21Z")

</div>

I open a south docked, but I'm using screen with different resolution, of course if I set 800px height when I'll open it in a 4k screen I will have a lot of empty space. This is the main reason.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [July 17, 2024, 9:58am UTC](https://forum.inductiveautomation.com/t/get-view-height-to-manage-docked-dimension/93324/4 "2024-07-17T09:58:56Z")

</div>

So you have a view that can take different height depending on the screen ?

Maybe you should have several docks, set their visibility to auto, then configure appropriate breakpoints for different screen sizes

Again, this sounds like an [xy problem](https://xyproblem.info/).  
If you give us more details about what you need to do, and not how you're trying to do it, we'll help you find a suitable solution.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [July 17, 2024, 10:20am UTC](https://forum.inductiveautomation.com/t/get-view-height-to-manage-docked-dimension/93324/5 "2024-07-17T10:20:26Z")

</div>

In a few words what I would like to do is to open a docked setting its height to the 80% of the view.

That's why I need to have the dimension of the view. I could have more docked with the breakpoints but of course I should repeat every update more times.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [July 22, 2024, 7:26pm UTC](https://forum.inductiveautomation.com/t/get-view-height-to-manage-docked-dimension/93324/6 "2024-07-22T19:26:26Z")

</div>

Any other suggestion about this?

I made other research but I cant find how to manage the height of the docked in percentage..
