Fixed a bug for windows that can be resized really small

Signed-off-by: danjamin <e051ba3be@gmail.com>
Added link to GitHub code

Signed-off-by: danjamin <e051ba3be@gmail.com>