зеркало из https://github.com/mozilla/gecko-dev.git
set the UI accordingly after doing PP from the combobox
Bug 143309 r=sgehani sr=alecf
This commit is contained in:
Родитель
8b124ce569
Коммит
bc2e23fdcf
|
@ -21,6 +21,7 @@
|
|||
-
|
||||
- Contributor(s):
|
||||
- Samir Gehani <sgehani@netscape.com> (Original Author)
|
||||
- Rod Spears <rods@netscape.com>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
|
@ -328,6 +329,8 @@
|
|||
settings.shrinkToFit = true;
|
||||
print.printPreview(settings);
|
||||
this.mScaleCombobox.setAttribute('lastValidInx', this.mScaleCombobox.selectedIndex);
|
||||
// update total number of pages since this could have changed
|
||||
this.mTotalPages.value = print.printPreviewNumPages;
|
||||
return;
|
||||
} else {
|
||||
return;
|
||||
|
@ -351,6 +354,8 @@
|
|||
settings.shrinkToFit = false;
|
||||
settings.scaling = aValue;
|
||||
print.printPreview(settings);
|
||||
// update total number of pages since this could have changed
|
||||
this.mTotalPages.value = print.printPreviewNumPages;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
Загрузка…
Ссылка в новой задаче