arranger: trying to fix width

This commit is contained in:
🪞👃🪞 2025-05-14 22:28:19 +03:00
parent 03024f8a14
commit 2013bac62f
3 changed files with 11 additions and 32 deletions

View file

@ -64,7 +64,7 @@ impl Arrangement {
}
/// Width available to display tracks.
pub fn w_tracks_area (&self, is_editing: bool) -> u16 {
self.w().saturating_sub(2 * self.w_sidebar(is_editing))
self.w().saturating_sub(self.w_sidebar(is_editing))
}
/// Height of display
pub fn h (&self) -> u16 {
@ -77,13 +77,7 @@ impl Arrangement {
}
/// Height available to display tracks.
pub fn h_scenes_area (&self) -> u16 {
//15
self.h().saturating_sub(
self.h_inputs() +
self.h_outputs() +
self.h_devices() +
13 // FIXME
)
20 // FIXME
}
/// Height taken by all scenes.
pub fn h_scenes (&self, is_editing: bool) -> u16 {