please add this code bits! (from old ZK chili)

code bits:
1) backward compatibility with widget using minimumSize table
2) snap to grid option
3) allow mouse hit test on empty panel

these stuff is used by ZK widget. Adding this to chili source is best for future merging. Currently ZK merge often forgot to re-add this bit and cause minor bug in widgets.