Fixed edge case in Q/inplace button positioning