mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Code formatting
This commit is contained in:
parent
5ac78b9ec6
commit
d9ba8b6711
@ -128,17 +128,17 @@ export const resolveThreeValueSyntax = (
|
||||
absoluteX = getAbsoluteValue(tuple[0], width);
|
||||
|
||||
if (tuple[1].type == TokenType.DIMENSION_TOKEN && tuple[0].number == 100) {
|
||||
absoluteX = getAbsoluteValue(tuple[0], width) - getAbsoluteValue(tuple[1], width);
|
||||
absoluteX = getAbsoluteValue(tuple[0], width) - getAbsoluteValue(tuple[1], width);
|
||||
}
|
||||
|
||||
if (tuple[2].type == TokenType.PERCENTAGE_TOKEN) {
|
||||
absoluteY = getAbsoluteValue(tuple[2], height);
|
||||
absoluteY = getAbsoluteValue(tuple[2], height);
|
||||
}
|
||||
}
|
||||
|
||||
if (tuple[1].type == TokenType.PERCENTAGE_TOKEN) {
|
||||
if (tuple[1].number == 100) {
|
||||
absoluteY = getAbsoluteValue(tuple[1], height) - getAbsoluteValue(tuple[2], height);
|
||||
absoluteY = getAbsoluteValue(tuple[1], height) - getAbsoluteValue(tuple[2], height);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user