Remove appointments panel scrollbar in multiple days mode
A scrollbar gives the impression of a fixed list. But the list on display is automatically and silently changed as needed for movements in the panel or the calendar, thus creating the illusion of an endless list. Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
378db90ada
commit
7e0274bc08
@ -631,9 +631,13 @@ long min2sec(unsigned minutes)
|
|||||||
/*
|
/*
|
||||||
* Display a scroll bar when there are so many items that they
|
* Display a scroll bar when there are so many items that they
|
||||||
* can not be displayed inside the corresponding panel.
|
* can not be displayed inside the corresponding panel.
|
||||||
|
* Leave it out in the appointments panel in when multiple days mode.
|
||||||
*/
|
*/
|
||||||
void draw_scrollbar(struct scrollwin *sw, int hilt)
|
void draw_scrollbar(struct scrollwin *sw, int hilt)
|
||||||
{
|
{
|
||||||
|
if (sw == &lb_apt.sw && conf.multiple_days)
|
||||||
|
return;
|
||||||
|
|
||||||
int y = (conf.compact_panels ? 1 : 3);
|
int y = (conf.compact_panels ? 1 : 3);
|
||||||
int h = sw->h - (conf.compact_panels ? 2 : 4);
|
int h = sw->h - (conf.compact_panels ? 2 : 4);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user