DataZombies/jQTouch — Issue #83: #tabbar fades in
Author: PoZel
Created: 2011-12-08 19:46:57+00:00
State: open

Firstly, thanks for all your hard work... it's truly amazing!

I noticed that the #tabbar fades in. I wanted to stop this, so scoured the code couldn't find anything.

I posted on the jQTouch google group, but decided to come back to this again and see if I could find what was causing it.

Hopefully I can be helpful as I have now found what is causing the issue (and, if it doesn't sound cheeky, it doesn't seem to be intentionally coded to animate):

The animated fade in is due to the way that the JQuery .show()
function is being called in jqt.bars.js:
line 632:
```javascript
$('#tabbar').show(function () {
_debug('initTabbar hide tabbar');
setPageHeight();
setBarWidth();
});
```
JQuery's API says that the function is either:
```javascript
.show()
```
or
```javascript
.show( duration [, callback] )
```
As line 362 only uses one variable when calling the .show() function,
JQuery assumes that it is using the function to determine how long to
take to show the #tabbar.
By changing line 362 to the following, it all works...
```javascript
$('#tabbar').show(0,function () {
```

Anyway, thanks again to jQTouch and datazombies! Loving all your hard work.