Docked Window Size not correct on Client with Vision

This seems to be a problem with Java’s Swing… but I found a little trick… Set your docked sidebar window “Minimum Size” to same width and height as the “Size”, and the width of the docked bar will actually resize. I have no idea why it works, but it does.


Keep in mind this will be the same size for both large and small screens, so if you need to set this dynamically, you would have to get into python scripting…

This script doesn’t work quite right (it does resize the bar, but doesn’t get the other window to fill the gap), but at least would point you in the right direction… I threw this on a button’s actionPerformed script. (probably better placed on a Client Events Startup script)

import java.awt.Dimension
window = system.gui.getParentWindow(event)
window.setSize(java.awt.Dimension(300, 600))
window.setMinimumSize(java.awt.Dimension(300, 600))

Maybe you can find the appropriate method to cause a refresh by getting a full list with

window = system.gui.getParentWindow(event)
print dir(window)
# and looking in the console for the full list

Hope these points help everyone out until it can be fully fixed.

1 Like