# Multi monitor wrong axis precedence

**URL:** <https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334>\
**Category:** Ignition\
**Created:** [November 9, 2016, 12:16pm UTC](https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334 "2016-11-09T12:16:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TESTHOMAS](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@TESTHOMAS](https://forum.inductiveautomation.com/u/TESTHOMAS)\
**Post date:** [November 9, 2016, 12:16pm UTC](https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334/1 "2016-11-09T12:16:46Z")

</div>

When we open two windows on a second desktop, the docking order differs from the primary desktop.  
It seems that the “axis precedence” from the project settings is not applied to secondary desktops.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [April 9, 2017, 3:48pm UTC](https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334/2 "2017-04-09T15:48:12Z")

</div>

Is there any news on this bug?

I’m just finisheg a project and its messing up my lovley screens.

---

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [June 6, 2017, 3:02pm UTC](https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334/3 "2017-06-06T15:02:07Z")

</div>

Hello,

Is there any evolution about this bug fix ?

---

<div class="post-metadata">

**Author:** ![Henk](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Henk](https://forum.inductiveautomation.com/u/Henk)\
**Post date:** [August 25, 2017, 11:25am UTC](https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334/4 "2017-08-25T11:25:30Z")

</div>

Hello,  
Does this ‘feature’ still exists?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 15, 2017, 11:19pm UTC](https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334/5 "2017-09-15T23:19:44Z")

</div>

I am not able to post it publicly, but there is now a workaround for this issue available on Ignition 7.9.2+. If you contact Support, we should be able to look up the issue and provide you with the workaround.

---

<div class="post-metadata">

**Author:** ![joeyjojoshabadu](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@joeyjojoshabadu](https://forum.inductiveautomation.com/u/joeyjojoshabadu)\
**Post date:** [January 30, 2018, 6:36am UTC](https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334/6 "2018-01-30T06:36:41Z")

</div>

Hello,

I have the same problem. Is it possible to find out what the work around is?

---

<div class="post-metadata">

**Author:** ![TESTHOMAS](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@TESTHOMAS](https://forum.inductiveautomation.com/u/TESTHOMAS)\
**Post date:** [January 30, 2018, 12:19pm UTC](https://forum.inductiveautomation.com/t/multi-monitor-wrong-axis-precedence/12334/7 "2018-01-30T12:19:28Z")

</div>

We used this code in the VisionWindowOpened event:

```auto
from javax.swing import JFrame
from org.python.core import Py

win = system.gui.getParentWindow(event)

while not isinstance(win,JFrame):
	win = win.getParent()
javaWin = Py.tojava(win,JFrame)

#Force full screen multi-monitor
javaWin.setExtendedState(0)

#Force axis precedence multi-monitor
from com.inductiveautomation.factorypmi.application.DockingDesktopManager import AxisPrecedence
from org.apache.commons.lang3.reflect import FieldUtils
current = system.gui.getCurrentDesktop()
gui = system.gui.desktop(current)
desktop = FieldUtils.readField(gui, "desktop", True)
desktop.setAxisPrecedence(AxisPrecedence.NorthSouth)

```
