[#54] button state fix when resizing