From 31d84435ec54e6f358a5fc1e54ea9927c7d1c2f9 Mon Sep 17 00:00:00 2001 From: lhiven Date: Thu, 14 Nov 2024 14:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96RsTray=E4=BB=8ERightTopToBott?= =?UTF-8?q?om=E7=94=BB=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.Controls/RsTray.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Rs.Controls/RsTray.cs b/Rs.Controls/RsTray.cs index 0b323bf..6e36976 100644 --- a/Rs.Controls/RsTray.cs +++ b/Rs.Controls/RsTray.cs @@ -413,15 +413,15 @@ namespace Rs.Controls else if (sortDir == ESortDir.RightTopToBottom) { //从列开始画 - for (int r = RowNum; r > 0; r--) + for (int c = ColumnNum; c > 0; c--) { - for (int c = 0; c < ColumnNum; c++) + for (int r = 0; r < RowNum; r++) { index++; if (traySlotsDic.ContainsKey(index)) { - float x = slotWidth * r; - float y = slotHeight * c; + float x = slotWidth * (c-1); + float y = slotHeight * r; traySlotsDic[index].Bound = new RectangleF(x, y, (int)slotWidth - ColSpace, (int)slotHeight - RowSpace); } }