Sometimes in at least FF4 beta the storage events seem to not trigger, so also manually trigger via event dispatch. Also give the wrapper a minimum height so that error messages in the panel show up with the panel sized correctly.

This commit is contained in:
jrburke 2011-02-03 16:57:22 -08:00
Родитель 2ec2bcbc74
Коммит 940d3dd8ff
2 изменённых файлов: 9 добавлений и 5 удалений

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

@ -100,6 +100,12 @@ function (storage, dispatch, rdapi) {
changed: function () { changed: function () {
store.accountChanged = (new Date()).getTime(); store.accountChanged = (new Date()).getTime();
//Force the onchange events to occur. Sometimes the storage
//events do not fire?
if (opener && !opener.closed) {
dispatch.pub('accountsChanged', null, opener);
}
dispatch.pub('accountsChanged');
}, },
onChange: function (action) { onChange: function (action) {
@ -112,6 +118,8 @@ function (storage, dispatch, rdapi) {
action(); action();
} }
}, false); }, false);
//Also use direct notification in case storage events fail.
dispatch.sub('accountsChanged', action);
} }
}, },
//Some extensions mess with localStorage, so in that case, fall back to //Some extensions mess with localStorage, so in that case, fall back to

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

@ -24,6 +24,7 @@ body {
width: 400px; width: 400px;
max-width: 400px; max-width: 400px;
position: relative; position: relative;
min-height: 180px;
height: 100%; height: 100%;
} }
@ -731,11 +732,6 @@ div.status td {
vertical-align: center; vertical-align: center;
} }
#statusSettings {
position: relative;
height: 180px;
}
#statusCaptcha { #statusCaptcha {
line-height: normal; line-height: normal;
} }