mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
arranger: trying to fix width
This commit is contained in:
parent
03024f8a14
commit
2013bac62f
3 changed files with 11 additions and 32 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue