jwill / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Making all windows to be of the same size #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tried setting the windowSizeOverride property to be the same TerminalSize for 
the windows, but when I use the GUIScreen to display these windows the first 
window is of one size and all other windows are of a different size. I am 
attaching a sample program that reproduces the issue I am observing.

Original issue reported on code.google.com by m.vino...@gmail.com on 28 Nov 2012 at 7:43

Attachments:

GoogleCodeExporter commented 9 years ago
Are you trying to make the windows go fullscreen? I did some support for this 
earlier, but it's not very good. Maybe something for the next release.

In this case though, I can get it to overlap perfectly by showing the windows 
centered:

        guiScreen.showWindow(window, GUIScreen.Position.CENTER);

There must be something in the tiling logic that shrinks the second window. 
I've taken your test case and added it to trunk, if you look in src/test/java, 
please give it a try.

Original comment by mab...@gmail.com on 9 Dec 2012 at 12:58

GoogleCodeExporter commented 9 years ago
I am trying to get all the windows to be of the same size(not maximised). I was 
able to get to work after I had a call to report the size of the terminal 
before I showed the first window.

Original comment by m.vino...@gmail.com on 9 Dec 2012 at 4:03

GoogleCodeExporter commented 9 years ago
Ok, could you try and see if GUIScreen.Position.CENTER works too? Also, if you 
can share your workaround, maybe I can investigate it further?

Original comment by mab...@gmail.com on 10 Dec 2012 at 1:44