fix #1883: resize icon on initialization

fix #1883