clear() method should update 'myContentSize' only once
(cherry picked from commit 812e2bd)