mirror of
https://gitee.com/chinware/atomui.git
synced 2024-11-29 18:38:16 +08:00
修复 OptionButton 线段绘制位移问题
修复 OptionButton 线段绘制位移问题,之前位移计算错误
This commit is contained in:
parent
55c286fd6c
commit
f5f45c5965
@ -264,7 +264,7 @@ public class OptionButtonGroup : TemplatedControl, ISizeTypeAware, IControlCusto
|
||||
}
|
||||
|
||||
if (i != Options.Count - 1) {
|
||||
var offsetX = optionButton.Bounds.Right;
|
||||
var offsetX = optionButton.Bounds.Right - borderThickness.Left / 2;
|
||||
var startPoint = new Point(offsetX, 0);
|
||||
var endPoint = new Point(offsetX, Bounds.Height);
|
||||
using var optionState = context.PushRenderOptions(new RenderOptions()
|
||||
|
Loading…
Reference in New Issue
Block a user