Set widget's height before moving it to palette