From 171c3e30d706fc7c7d9adab6592f9844d498a6b0 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sat, 11 Feb 2023 04:30:26 +0100 Subject: [PATCH] Timeline: fix horizontal allocation on leaf-tracks ...as it turned out, it suffices just to state desired behaviour explicitly - make the StaveBracket expand=false - declare the HeadControl expand=true The reason lies in the fact that on leaf-tracks there are just two adjacent cells in a single row, lacking any exterior source of layout guidance. --- src/stage/timeline/stave-bracket-widget.cpp | 8 ++-- src/stage/timeline/track-head-widget.cpp | 1 + wiki/thinkPad.ichthyo.mm | 45 +++++++++++++++++++-- 3 files changed, 48 insertions(+), 6 deletions(-) diff --git a/src/stage/timeline/stave-bracket-widget.cpp b/src/stage/timeline/stave-bracket-widget.cpp index b602ede8e..09ca4417f 100644 --- a/src/stage/timeline/stave-bracket-widget.cpp +++ b/src/stage/timeline/stave-bracket-widget.cpp @@ -59,13 +59,15 @@ namespace timeline { + StaveBracketWidget::~StaveBracketWidget() { } + StaveBracketWidget::StaveBracketWidget () : _Base{} - { } + { + this->property_expand() = false; + } - StaveBracketWidget::~StaveBracketWidget() { } - /** */ bool diff --git a/src/stage/timeline/track-head-widget.cpp b/src/stage/timeline/track-head-widget.cpp index 33a79b02a..ed9dde784 100644 --- a/src/stage/timeline/track-head-widget.cpp +++ b/src/stage/timeline/track-head-widget.cpp @@ -90,6 +90,7 @@ namespace timeline { ctrlTODO_.set_xalign (0.3); ctrlTODO_.set_yalign (0.5); this->attach (ctrlTODO_, 0,0, 1,1); + this->property_expand() = true; this->show_all(); } diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 3fede5d1e..a3518210f 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -28079,8 +28079,8 @@ - - + + @@ -28091,8 +28091,47 @@ - + + + + + +
    +
  • + das Problem tritt auf bei »Leaf-Tracks« +
  • +
  • + bei diesen liegen hier zwei Zellen nebeneinander, und sonst nichts, was eine Verankerung geben könnte +
  • +
  • + zwar habe ich kein homogenous-spacing gesetzt (geht das überhaupt?) +
  • +
  • + aber die Zelle (0,1) enthält ein weiteres Grid-Control +
  • +
  • + das aber seinerseits nur eine einzige Zelle mit einem Platzhalter beinhaltet +
  • +
  • + ...also selbst komplett unterfüllt ist und keine signifikante Allokation erzeugt +
  • +
+

+ ⟹ längerfristig wird sich das sowiso regeln +

+ +
+ +
+ + + + + + + +