+ Better indication of groups as drop targets

+ Using the new-tab buttons no longer cause a jarring shift due to window chrome appearing.
This commit is contained in:
Aza Raskin 2010-05-22 11:42:23 -07:00
Родитель b29d117630
Коммит 4c2258c2fa
2 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -932,8 +932,16 @@ window.Group.prototype = $.extend(new Item(), new Subscribable(), {
// ----------
newTab: function() {
Groups.setActiveGroup(this);
var newTab = Tabs.open("about:blank");
UI.navBar.hide();
var newTab = Tabs.open("about:blank", true);
// Because opening a new tab happens in a different thread(?)
// calling Page.hideChrome() inline won't do anything. Instead
// we have to marshal it. A value of 0 wait time doesn't seem
// to work. Instead, we use a value of 1 which seems to be the
// minimum amount of time required.
setTimeout(function(){
Page.hideChrome()
}, 1);
var self = this;
var doNextTab = function(tab){
@ -960,8 +968,7 @@ window.Group.prototype = $.extend(new Item(), new Subscribable(), {
}, 270, function(){
$(tab.container).css({opacity: 1});
newTab.focus();
UI.tabBar.show(false);
UI.navBar.show();
Page.showChrome()
UI.navBar.urlBar.focus();
anim.remove();
// We need a timeout here so that there is a chance for the

Просмотреть файл

@ -216,7 +216,7 @@ body {
}
.acceptsDrop{
-moz-box-shadow: 1px 1px 3px -1px rgba(0,0,0,.5);
-moz-box-shadow: 2px 2px 10px -1px rgba(0,0,0,.6);
}
.titlebar{