Added public methods to JSExpandingTextField for computing its size