excalidraw/src/scene
Christopher Chedeau 5071cffb02
Fix scrollbars when no elements (#2460)
I already fixed this but a special case for no elements was added in getCommonBounds to return 0 and reintroduce this bug. I'm not exactly sure where to put this check tbh. Fixing it here so that I'm not annoyed anymore at least.

I checked some of the callsites, some of them related to selection will never pass an empty array, some to export will break if we remove the 0, 0, 0, 0 fix.
2020-12-06 12:42:04 +01:00
..
comparisons.ts chore: Minor refactoring for consistency (#2425) 2020-11-29 17:32:51 +01:00
export.ts Zoom on cursor | Issue #940 (#2319) 2020-11-04 19:49:15 +02:00
index.ts chore: Minor refactoring for consistency (#2425) 2020-11-29 17:32:51 +01:00
Scene.ts Keep errors, elements and comments consistent (#2340) 2020-11-05 18:06:18 +01:00
scroll.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
scrollbars.ts Fix scrollbars when no elements (#2460) 2020-12-06 12:42:04 +01:00
selection.ts Fix group element removing (#1676) 2020-05-30 13:48:57 -07:00
types.ts Zoom on cursor | Issue #940 (#2319) 2020-11-04 19:49:15 +02:00
zoom.ts chore: Minor refactoring for consistency (#2425) 2020-11-29 17:32:51 +01:00