rowSizeDelta rounding
parent
a359070fae
commit
4f256b334a
|
@ -701,8 +701,14 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) {
|
||||||
|
|
||||||
// Set row height
|
// Set row height
|
||||||
const row = this.list[rowIdx];
|
const row = this.list[rowIdx];
|
||||||
rowSizeDelta += jbox.height - row.size;
|
const jH = Math.round(jbox.height);
|
||||||
row.size = jbox.height;
|
const delta = jH - row.size;
|
||||||
|
// If the difference is too small, it's not worth risking an adjustment
|
||||||
|
// especially on square layouts on mobile
|
||||||
|
if (Math.abs(delta) > 5) {
|
||||||
|
rowSizeDelta += delta;
|
||||||
|
row.size = jH;
|
||||||
|
}
|
||||||
|
|
||||||
// Add the photo to the row
|
// Add the photo to the row
|
||||||
const photo = data[dataIdx];
|
const photo = data[dataIdx];
|
||||||
|
|
Loading…
Reference in New Issue