From 35fa11dc5101b159459d7d0208c99fd5bd1556b2 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 14 Oct 2014 00:20:34 +0000 Subject: [PATCH] InputRoll - a small todo, no functional change --- BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs index f699428c91..a92d1ba467 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs @@ -57,19 +57,20 @@ namespace BizHawk.Client.EmuHawk ColumnWidth = CellWidth; ColumnHeight = CellHeight + 2; - // TODO Figure out how to use the width and height properties of the scrollbars instead of 17 + var width = new VScrollBar().Width; VBar = new VScrollBar { - Location = new Point(Width - 17, 0), + Location = new Point(Width - width, 0), Visible = false, Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom, SmallChange = CellHeight, LargeChange = CellHeight * 20 }; + var height = new HScrollBar().Height; HBar = new HScrollBar { - Location = new Point(0, Height - 17), + Location = new Point(0, Height - height), Visible = false, Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, SmallChange = 1,