set the UI accordingly after doing PP from the combobox

Bug 143309 r=sgehani sr=alecf
This commit is contained in:
rods%netscape.com 2006-07-29 05:35:01 +00:00
Родитель 4c990324bc
Коммит de1aee4b89
1 изменённых файлов: 5 добавлений и 0 удалений

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

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