adapt button bar position depending on window size #11