View Full Version : Ext.Toolbar.setHeight makes toolbar disappear?

30 Apr 2011, 2:32 AM
I am having many toolbar refresh issues and this is the easiest way to reproduce the problem. When setting the height of the toolbar, it causes the toolbar to disappear. Anyone else seeing this? using sencha touch 1.1

Code below causes toolbar1 to disappear:

I don't mind that it disappear. I just want the code to make it reappear. doLayout, doComponentLayout, etc. did not work. Ext.repaint() is a joke.

30 Apr 2011, 11:08 AM
take a look at what setHeight() expects as a parameter. Hint: it is not a string.

1 May 2011, 12:39 AM
what threw me off was the string parameter did set it to the new height but then the control disappear.

I've been struggling with toolbar refreshing issues when page first loading on android phones. so hope someone will find snippet below helpful:

on activate:
window.scrollTo(0, 0); // reset in case prev not
window.scrollTo(0, 1);