Using (0, 0) as initializers for the global extent calculation
is suboptimal as it causes the lowest y coordinate to always be 0
when all traces have positive y offsets. When moving all traces
down, the scroll area becomes too large as a result. Using
(INT_MAX, INT_MIN) instead fixes this.
pair<int, int> RowItemOwner::v_extents() const
{
- pair<int, int> extents(0, 0);
+ pair<int, int> extents(INT_MAX, INT_MIN);
+
for (const shared_ptr<RowItem> r : child_items()) {
assert(r);
if (!r->enabled())