Fix nanoui maps
Created by: clusterfack
Makes nanoui map size independent.
I hope you guys realize I spent like several hours on this. All because some shitter decided he would use hardcoded variables for map size.
fixes #8216 (closed) fixes #8276 (closed) fixes #11070 (closed) fixes #11386 (closed)