Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse McCormick committed Jul 6, 2018
1 parent 34f7425 commit af20742
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box,

if (hasMaxWidth && hasMaxHeight) {
if (intrinsicWidth > maxWidth || intrinsicHeight > maxHeight) {
double rw = (double) intrinsicWidth / (double) maxWidth;
double rh = (double) intrinsicHeight / (double) maxHeight;
double rw = (double) intrinsicWidth / (double) maxWidth;
double rh = (double) intrinsicHeight / (double) maxHeight;

if (rw > rh) {
fsImage.scale((int) maxWidth, -1);
} else {
fsImage.scale(-1, (int) maxHeight);
}
}
if (rw > rh) {
fsImage.scale((int) maxWidth, -1);
} else {
fsImage.scale(-1, (int) maxHeight);
}
}
} else if (hasMaxWidth && intrinsicWidth > maxWidth) {
fsImage.scale((int) maxWidth, -1);
} else if (hasMaxHeight && intrinsicHeight > maxHeight) {
Expand Down

0 comments on commit af20742

Please sign in to comment.