개정판 3c4acae8
issue #001: Text Rotate Thumb Margin 수정 (기본 30에서 회전 시 top margin size가 변경되어 생긴 현상으로 30으로 고정)
Change-Id: I8ebbe8986b6ff7d6dd2d44ca7868c46c058327b4
KCOM/Controls/AdornerFinal.xaml.cs | ||
---|---|---|
705 | 705 |
{ |
706 | 706 |
maxY = textControlHeight + (currentControl as TextControl).EndPoint.Y; |
707 | 707 |
} |
708 |
marginSize = ((dynamic)currentControl).LineSize.Left; |
|
708 |
if((currentControl as TextControl).ControlType_No == 2) |
|
709 |
marginSize = (((currentControl as TextControl).Base_TextPath).ActualHeight - ((currentControl as TextControl).Base_Border).ActualHeight) / 2 + (((dynamic)currentControl).LineSize.Left / 2) + (currentControl as TextControl).ArcLength - 30; |
|
710 |
if ((currentControl as TextControl).ControlType_No == 1) |
|
711 |
marginSize = ((dynamic)currentControl).LineSize.Left; |
|
709 | 712 |
} |
710 | 713 |
else if ((currentControl as IViewBox) != null) |
711 | 714 |
{ |
... | ... | |
793 | 796 |
|
794 | 797 |
DragThumb.Width = ac.Width; |
795 | 798 |
DragThumb.Height = ac.Height; |
796 |
rotateTop.Margin = new Thickness(rotateTop.Margin.Left, rotateTop.Margin.Top - marginSize, rotateTop.Margin.Right, rotateTop.Margin.Bottom);
|
|
799 |
rotateTop.Margin = new Thickness(rotateTop.Margin.Left, -30 - marginSize, rotateTop.Margin.Right, rotateTop.Margin.Bottom);
|
|
797 | 800 |
DragThumb.MinWidth = 10; |
798 | 801 |
DragThumb.MinHeight = 10; |
799 | 802 |
if (addWidthSize) |
내보내기 Unified diff