Skip to content

Commit f24cf74

Browse files
committed
added comment on units for the pagesize
1 parent 270717d commit f24cf74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: java/src/org/openqa/selenium/print/PageSize.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public class PageSize {
2525
private final double width;
2626

2727
// Predefined constants
28-
public static final PageSize A4 = new PageSize(27.94, 21.59);
29-
public static final PageSize LEGAL = new PageSize(35.56, 21.59);
30-
public static final PageSize TABLOID = new PageSize(43.18, 27.94);
31-
public static final PageSize LETTER = new PageSize(27.94, 21.59);
32-
28+
public static final PageSize A4 = new PageSize(27.94, 21.59); // A4 size in cm
29+
public static final PageSize LEGAL = new PageSize(35.56, 21.59); // Legal size in cm
30+
public static final PageSize TABLOID = new PageSize(43.18, 27.94); // Tabloid size in cm
31+
public static final PageSize LETTER = new PageSize(27.94, 21.59); // Letter size in cm
32+
3333
public PageSize(double height, double width) {
3434
this.height = height;
3535
this.width = width;

0 commit comments

Comments
 (0)