Applied xuyun018's fix for Fl_Tree horiz scroll (#1297)

This commit is contained in:
Greg Ercolano 2026-03-03 16:45:51 -08:00
parent e931c21e89
commit bb1b10a440

View File

@ -671,7 +671,7 @@ void Fl_Tree::calc_tree() {
// We need this to compute scrollbars..
// By the end, 'Y' will be the lowest point on the tree
//
int X = _tix + _prefs.marginleft() + _hscroll->value();
int X = _tix + _prefs.marginleft() - _hscroll->value();
int Y = _tiy + _prefs.margintop() - _vscroll->value();
int W = _tiw;
// Adjust root's X/W if connectors off