Constrain height of group-tab to the editor's height

Previously the group-tab extended all the way down to the
last track. Potentially with a widget height of > 2^15 px.

This caused issues with gtk widgets (notably on Windows)
```
unhandled exception (type std::exception) in signal handler:
what: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
```

This also prepares for Mixer Tab-Group to use the same
separation between visible and total extent.
This commit is contained in:
Robin Gareus 2024-06-22 04:46:09 +02:00
parent c94ca79798
commit bdd6eec95c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
9 changed files with 71 additions and 32 deletions

View file

@ -34,7 +34,8 @@ private:
void draw_tab (cairo_t *, Tab const &);
double primary_coordinate (double, double) const;
ARDOUR::RouteList routes_for_tab (Tab const *) const;
double extent () const {
double visible_extent () const {
return get_width();
}