mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 02:47:07 +00:00
+ Added animation to showing/hiding the tabbar
+ More updates to the TabCandy Spec
This commit is contained in:
parent
a4c6d936cc
commit
f2998ab293
@ -14,8 +14,17 @@ Navbar = {
|
||||
// ##########
|
||||
var Tabbar = {
|
||||
get el(){ return window.Tabs[0].raw.parentNode; },
|
||||
hide: function(){ this.el.collapsed = true; },
|
||||
show: function(){ this.el.collapsed = false; },
|
||||
height: window.Tabs[0].raw.parentNode.getBoundingClientRect().height,
|
||||
hide: function(){
|
||||
var self = this;
|
||||
$(self.el).animate({"marginTop":-self.height}, 150, function(){
|
||||
self.el.collapsed = true;
|
||||
});
|
||||
},
|
||||
show: function(){
|
||||
this.el.collapsed = false;
|
||||
$(this.el).animate({"marginTop":0}, 150);
|
||||
},
|
||||
get isHidden(){ return this.el.collapsed; }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user