зеркало из https://github.com/mozilla/pjs.git
Add three lines at line 304 to fix the bug 14110. It checks whether there is ... at the end of the title. Have the code reviewed by Chris Saari.
This commit is contained in:
Родитель
f73f158740
Коммит
96e8a5830d
|
@ -301,7 +301,11 @@ nsTitledButtonFrame::Init(nsIPresContext* aPresContext,
|
|||
accesskey.ToUpperCase();
|
||||
tmpstring += accesskey;
|
||||
tmpstring += ")";
|
||||
mTitle += tmpstring;
|
||||
PRUint32 offset = mTitle.RFind("...");
|
||||
if ( offset != kNotFound)
|
||||
mTitle.Insert(tmpstring,offset);
|
||||
else
|
||||
mTitle += tmpstring;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче