Bug 587248 - Part 13: Correct the welcome box positioning on first run in RTL mode; r=ian a=blocking-betaN+

This commit is contained in:
Ehsan Akhgari 2010-11-10 22:48:43 -05:00
Родитель 08da81dacb
Коммит fe9182c20b
1 изменённых файлов: 6 добавлений и 3 удалений

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

@ -262,8 +262,11 @@ let UI = {
pageBounds.inset(padding, padding);
let $actions = iQ("#actions");
if ($actions)
if ($actions) {
pageBounds.width -= $actions.width();
if (UI.rtl)
pageBounds.left += $actions.width() - padding;
}
// ___ make a fresh groupItem
let box = new Rect(pageBounds);
@ -271,7 +274,7 @@ let UI = {
pageBounds.width - (welcomeWidth + padding));
box.height = box.height * 0.667;
if (UI.rtl) {
box.right = pageBounds.width + pageBounds.left;
box.left = pageBounds.left + welcomeWidth + 2 * padding;
}
GroupItems.groupItems.forEach(function(group) {
@ -301,7 +304,7 @@ let UI = {
newTabItem.parent.remove(newTabItem);
let aspect = TabItems.tabHeight / TabItems.tabWidth;
let welcomeBounds = new Rect(box.right + padding, box.top,
let welcomeBounds = new Rect(UI.rtl ? pageBounds.left : box.right, box.top,
welcomeWidth, welcomeWidth * aspect);
newTabItem.setBounds(welcomeBounds, true);
GroupItems.setActiveGroupItem(groupItem);