summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:12:02 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:12:02 +0000
commitb7e8efe9128b80167f33f09d1c9a0839fb3a3b02 (patch)
tree957e1c8c9306e05c21235baff1142f686c7be666 /pdf-over-gui/src/main/java/at/asit
parent18fab2e12d5205159f99695f0439adfbb9d336c9 (diff)
downloadpdf-over-b7e8efe9128b80167f33f09d1c9a0839fb3a3b02.tar.gz
pdf-over-b7e8efe9128b80167f33f09d1c9a0839fb3a3b02.tar.bz2
pdf-over-b7e8efe9128b80167f33f09d1c9a0839fb3a3b02.zip
Fix scrollbar max
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@190 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index ef0177c5..8376e353 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
@@ -313,13 +313,13 @@ public class PositioningComposite extends StateComposite {
PositioningComposite.this.btnNewPage.setText(
Messages.getString("positioning.newPage")); //$NON-NLS-1$
PositioningComposite.this.btnNewPage.setSelection(false);
- PositioningComposite.this.scrollbar.setMaximum(numPages);
+ PositioningComposite.this.scrollbar.setMaximum(numPages + 1);
} else if ((previousPage <= numPages) && (currentPage > numPages)) {
// Go to new page
PositioningComposite.this.btnNewPage.setText(
Messages.getString("positioning.removeNewPage")); //$NON-NLS-1$
PositioningComposite.this.btnNewPage.setSelection(true);
- PositioningComposite.this.scrollbar.setMaximum(numPages + 1);
+ PositioningComposite.this.scrollbar.setMaximum(numPages + 2);
}
PositioningComposite.this.scrollbar.setSelection(currentPage);
PositioningComposite.this.lblPage.setText(String.format(