зеркало из https://github.com/mozilla/pjs.git
Sorta trying.
This commit is contained in:
Родитель
c1ca47934a
Коммит
b7a4cc3efe
|
@ -242,7 +242,7 @@ var toolbarDNDObserver = {
|
||||||
if (!nextRow) {
|
if (!nextRow) {
|
||||||
var last = currentRow.lastChild;
|
var last = currentRow.lastChild;
|
||||||
var first = currentRow.firstChild;
|
var first = currentRow.firstChild;
|
||||||
if (firstChild == lastChild) {
|
if (first == last) {
|
||||||
// Kill the row.
|
// Kill the row.
|
||||||
currentRow.parentNode.removeChild(currentRow);
|
currentRow.parentNode.removeChild(currentRow);
|
||||||
return;
|
return;
|
||||||
|
@ -252,6 +252,9 @@ var toolbarDNDObserver = {
|
||||||
var flex = last.getAttribute("flex");
|
var flex = last.getAttribute("flex");
|
||||||
flex++;
|
flex++;
|
||||||
last.setAttribute("flex", flex);
|
last.setAttribute("flex", flex);
|
||||||
|
// Reflow doesn't happen for some reason. Trigger it with a hide/show. ICK! -dwh
|
||||||
|
last.hidden = true;
|
||||||
|
last.hidden = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче