[MC-7707] Minecraft can be resized below the size at which it can all fit on the screen. Created: 17/Jan/13  Updated: 20/Oct/13  Resolved: 01/Mar/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w03a, Snapshot 13w09a, Snapshot 13w09b
Fix Version/s: None

Type: Bug
Reporter: Kurtis Alderton Assignee: Unassigned
Resolution: Won't Fix Votes: 2
Labels: None

Attachments: PNG File minecraft small.PNG    
Issue Links:
Duplicate
is duplicated by MCL-31 [Launcher] Minimum size not set Resolved
Confirmation Status: Unconfirmed

 Comments   
Comment by Markku [ 10/Jul/13 ]

As MC-13661 (a comment in there) indicates, it is not always the player who has a reason to reduce the window size to super-tiny sizes. Just like I predicted, another bug elsewhere makes it for you, so there is a good reason to at least try to prevent it. Then again, my single-line fix shown above might not be enough to convince LWJGL to not mess things up.

I had misunderstood that issue to another one I have been experiencing. Nevertheless, the issue I am having is a prime example why applications should enforce some usable minimum size, at least if it is not safe to simply force-close the app from the X-button in the window corner or via other means.

Comment by [Mojang] Jeb (Jens Bergensten) [ 01/Mar/13 ]

I think you have to have a good reason to scale down the windows that much. And if there is such a reason, why prevent it...

Comment by Markku [ 28/Feb/13 ]

Affects 13w09b.

Comment by Markku [ 17/Jan/13 ]

(EDIT: there is a good reason to have this fixed: with small enough window, the "quit" button won't be visible. Of course, one should be able to enlarge the window or switch full screen if one could also make it so small. But it is not 1 or 2 times that I have found myself with a too small window that I have not been able to adjust; quirky/bugged apps and bad window manager in the OS...)

Rather a simple fix:

Minecraft.main(String[])
    ...
    Frame var13 = new Frame();
    var13.setTitle("Minecraft");
    var13.setBackground(Color.BLACK);
    var13.setMinimumSize(new Dimension(400, 240)); // <-- added, tune those values...
    ...

Tested only with 1.4.7, Win7 64-bit, java 7, but should work...

Comment by Kurtis Alderton [ 17/Jan/13 ]

To see if it could be done?

Comment by Kumasasa [ 17/Jan/13 ]

But why did you do it ?

Comment by Kurtis Alderton [ 17/Jan/13 ]

I don't imagine it should do that?

Comment by Kumasasa [ 17/Jan/13 ]

Is this a bug ?

Generated at Sun Jan 12 12:15:24 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.