「Toggle visibility」text space

Why does the adjacent text margin change before and after pulldown when using “Toggle visibility”? Is there a workaround?