Fixing div factory and making alignment symmetrical
This commit is contained in:
@@ -112,17 +112,17 @@ double _landScapeAlign(
|
|||||||
if (isAttachment) {
|
if (isAttachment) {
|
||||||
result = 0;
|
result = 0;
|
||||||
} else if (user?.id == message.user?.id) {
|
} else if (user?.id == message.user?.id) {
|
||||||
if (divFactor >= 1.7) {
|
if (divFactor >= 1.0) {
|
||||||
result = 0;
|
result = 0;
|
||||||
} else {
|
} else {
|
||||||
// Small messages, it is simpler to align then.
|
// Small messages, it is simpler to align then.
|
||||||
result = 1 - divFactor * 0.6;
|
result = 1 - divFactor * 0.6;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (divFactor >= 1.7) {
|
if (divFactor >= 1.0) {
|
||||||
result = shiftFactor + maxWidth / constant;
|
result = shiftFactor + maxWidth / constant;
|
||||||
} else {
|
} else {
|
||||||
result = -(1.2 - divFactor * 0.6);
|
result = -(1 - divFactor * 0.6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user