mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 13:53:42 +01:00
Reset to first pair if out of bounds
This commit is contained in:
parent
26f33cde85
commit
fb5f1c4391
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ public partial class MtrlTab
|
|||
var spaceWidth = ImUtf8.CalcTextSize(" "u8).X;
|
||||
var spacePadding = (int)MathF.Ceiling((highlighterSize.X + framePadding.X + itemInnerSpacing) / spaceWidth);
|
||||
|
||||
if (uiState.ColorTableSelectedPair >= table.Height >> 1)
|
||||
uiState.ColorTableSelectedPair = 0;
|
||||
|
||||
for (var i = 0; i < table.Height >> 1; i += 8)
|
||||
{
|
||||
var numPairsInRow = Math.Min(8, (table.Height >> 1) - i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue