Panel: rework hight logic

The hight of a Panel dpends on whether the Panel has a header or not.
Also the header migth not be set on Panel creation, like in the
MainPanel. This currently causes the cursor to get hidden behind the
FunctionBar on down-scrolling.
This commit is contained in:
Christian Göttsche
2021-01-01 22:06:26 +01:00
committed by cgzones
parent eb6f8d569d
commit 24c5ca9ddf
2 changed files with 18 additions and 21 deletions

View File

@ -124,7 +124,7 @@ static void ScreenManager_drawPanels(ScreenManager* this, int focus, bool force_
for (int i = 0; i < nPanels; i++) {
Panel* panel = (Panel*) Vector_get(this->panels, i);
Panel_draw(panel, force_redraw, i == focus, !((panel == this->state->panel) && this->state->hideProcessSelection));
mvvline(panel->y, panel->x + panel->w, ' ', panel->h + 1);
mvvline(panel->y, panel->x + panel->w, ' ', panel->h);
}
}