AmendHub

Download:

jcs

/

subtext

/

amendments

/

135

logger: Fix position of scrollbar


jcs made amendment 135 over 2 years ago
--- logger.c Sun May 15 22:05:44 2022 +++ logger.c Sun Jun 12 00:28:30 2022 @@ -91,7 +91,7 @@ logger_layout(struct logger *logger, bool init, Rect * bounds.top = -1; bounds.right = win_bounds.right - win_bounds.left; bounds.bottom = win_bounds.bottom - win_bounds.top; - bounds.left = bounds.right; + bounds.left = bounds.right - SCROLLBAR_WIDTH; if (init) logger->messages_scroller = NewControl(logger->win, &bounds, "\p", true, 1, 1, 1, scrollBarProc, 0L); @@ -99,8 +99,7 @@ logger_layout(struct logger *logger, bool init, Rect * (*(logger->messages_scroller))->contrlRect = bounds; /* messages */ - bounds.right = (*(logger->messages_scroller))->contrlRect.left - - SCROLLBAR_WIDTH; + bounds.right = (*(logger->messages_scroller))->contrlRect.left; bounds.left = 0; bounds.top = 0; if (init) {