Take into account panel border on Windows