зеркало из https://github.com/mozilla/pjs.git
Make alert notifications popup over the left end of the taskbar on right-to-left desktops. Bug 132733, r=ere, sr=neil
This commit is contained in:
Родитель
41b42208f0
Коммит
a000b52e9a
|
@ -469,8 +469,13 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
|||
break;
|
||||
case ABE_TOP:
|
||||
aMetric = NS_ALERT_TOP;
|
||||
break;
|
||||
// fall through for the right-to-left handling.
|
||||
case ABE_BOTTOM:
|
||||
// If the task bar is right-to-left,
|
||||
// move the origin to the left
|
||||
if (::GetWindowLong(shellWindow, GWL_EXSTYLE) &
|
||||
WS_EX_LAYOUTRTL)
|
||||
aMetric |= NS_ALERT_LEFT;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче