Bug 215318 bookmark overflow chevron can overlap bookmark name text r=timeless sr=jag

This commit is contained in:
neil%parkwaycc.co.uk 2007-05-05 04:36:21 +00:00
Родитель 1fe73574c8
Коммит 5a6db24508
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -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)