Border-Patch

Please review/pull this change.
It fixes width/height computation in case of panels having borders.