Overlay window fixes and rect functions.

[FIXED]     Positioning of overlay window.
[ADDED]     Some functions for manipulating rects.
[ADDED]     Some methods for setting a view's frame by padding it in the parent.