Applied xuyun018's fix for Fl_Tree horiz scroll (#1297)
This commit is contained in:
parent
e931c21e89
commit
bb1b10a440
@ -671,7 +671,7 @@ void Fl_Tree::calc_tree() {
|
|||||||
// We need this to compute scrollbars..
|
// We need this to compute scrollbars..
|
||||||
// By the end, 'Y' will be the lowest point on the tree
|
// 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 Y = _tiy + _prefs.margintop() - _vscroll->value();
|
||||||
int W = _tiw;
|
int W = _tiw;
|
||||||
// Adjust root's X/W if connectors off
|
// Adjust root's X/W if connectors off
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user