Fix window expanding when resource item changes
Fix window expanding when resource item changes

This commit fixes a bug where the main window's size may expand when a
resource item changes (which may cause the window to expand to a size
larger than my laptop screen (1366x768))

undisbeliever/untech-editor,undisbeliever/untech-editor