The symbol names for set_resize and set_shrink were switched around in the code example.
set_resize
set_shrink