prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

Nez.UI SetScrollBarPositions does opposite of parameter name. #778

Open lllKXlll opened 8 months ago

lllKXlll commented 8 months ago

public ScrollPane SetScrollBarPositions(bool bottom, bool right) { _hScrollOnBottom = bottom; _vScrollOnRight = right; return this; }

_hScrollOnBottom is doing the opposite of what's implied when set to True, putting the horizontal scrollbar on TOP of the scrollpane. A quick fix would be to simply rename it to _hScrollOnTop.