added support for window padding