Fixes the bug with different sizes of icons inside of the button panel

Reported-by: bnurbekov
Signed-off-by: Batyrlan Nurbekov <bnurbekov@wpi.edu>