fix movement on note state change

previously, when changing state frome expanded to compact, the
container would move a little bit. this commit fixes that movement