jcs
/subtext
/amendments
/287
settings: Fix alignment of scrollbars in editor window
jcs made amendment 287 over 2 years ago
--- settings.c Fri Nov 11 23:02:55 2022
+++ settings.c Fri Nov 18 09:28:24 2022
@@ -389,8 +389,8 @@ view_editor_show(size_t id, char *title)
view_editor->vert_scroller = NewControl(view_editor->win, &bounds,
"\p", true, 1, 1, 1, scrollBarProc, 0L);
- bounds.left = (*(view_editor->te))->viewRect.left;
- bounds.right = (*(view_editor->te))->viewRect.right;
+ bounds.left = (*(view_editor->te))->viewRect.left - 1;
+ bounds.right = (*(view_editor->te))->viewRect.right + 1;
bounds.top = (*(view_editor->te))->viewRect.bottom;
bounds.bottom = bounds.top + SCROLLBAR_WIDTH;
view_editor->horiz_scroller = NewControl(view_editor->win, &bounds,