зеркало из https://github.com/mozilla/pjs.git
Bug 215318 bookmark overflow chevron can overlap bookmark name text r=timeless sr=jag
This commit is contained in:
Родитель
1fe73574c8
Коммит
5a6db24508
|
@ -722,6 +722,8 @@ var BookmarksToolbar =
|
|||
return;
|
||||
var chevron = document.getElementById("bookmarks-chevron");
|
||||
var width = buttons.boxObject.x + buttons.boxObject.width;
|
||||
chevron.collapsed = false;
|
||||
var chevronWidth = chevron.boxObject.width;
|
||||
chevron.collapsed = true;
|
||||
var overflowed = false;
|
||||
|
||||
|
@ -729,7 +731,9 @@ var BookmarksToolbar =
|
|||
var button = buttons.childNodes[i];
|
||||
button.collapsed = overflowed;
|
||||
|
||||
if (button.boxObject.x + button.boxObject.width > width) {
|
||||
if (i == buttons.childNodes.length - 1)
|
||||
chevronWidth = 0;
|
||||
if (button.boxObject.x + button.boxObject.width + chevronWidth > width) {
|
||||
overflowed = true;
|
||||
// This button doesn't fit. Show it in the menu. Hide it in the toolbar.
|
||||
if (!button.collapsed)
|
||||
|
|
Загрузка…
Ссылка в новой задаче