X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2Fexamples%2Fscroll-view.cs;h=c4cf845ec159a59b4054ac2276e7479e950808cb;hp=cc42168008fa2b4050a39c929203b3b01813956a;hb=cedba732c89206dbb8c1f592c23a12b16d7fc3d2;hpb=3cea6f94aa1fdc59c0f607a3b0a41aabd0c6c9b7 diff --git a/plugins/dali-swig/examples/scroll-view.cs b/plugins/dali-swig/examples/scroll-view.cs index cc42168..c4cf845 100755 --- a/plugins/dali-swig/examples/scroll-view.cs +++ b/plugins/dali-swig/examples/scroll-view.cs @@ -56,8 +56,8 @@ namespace MyCSharpExample _scrollView = new ScrollView(); Size stageSize = stage.Size; _scrollView.Size = new Position(stageSize.W, stageSize.H, 0.0f); - _scrollView.ParentOrigin = NDalic.ParentOriginCenter; - _scrollView.AnchorPoint = NDalic.AnchorPointCenter; + _scrollView.Position = new Position(0,0,0); + _scrollView.AnchorPoint = NDalic.AnchorPointTopLeft; stage.Add(_scrollView); // Add actors to a scroll view with 3 pages @@ -69,8 +69,7 @@ namespace MyCSharpExample { View pageActor = new View(); pageActor.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.ALL_DIMENSIONS); - pageActor.ParentOrigin = NDalic.ParentOriginCenter; - pageActor.AnchorPoint = NDalic.AnchorPointCenter; + pageActor.AnchorPoint = NDalic.AnchorPointTopLeft; pageActor.Position = new Position(pageColumn * stageSize.W, pageRow * stageSize.H, 0.0f); // Add images in a 3x4 grid layout for each page @@ -125,8 +124,7 @@ namespace MyCSharpExample _scrollView.WheelMoved += Onwheel; _scrollView.KeyInputFocusGained += OnKey; _text = new TextLabel("View Touch Event Handler Test"); - _text.ParentOrigin = NDalic.ParentOriginCenter; - _text.AnchorPoint = NDalic.AnchorPointCenter; + _text.AnchorPoint = NDalic.AnchorPointTopLeft; _text.HorizontalAlignment = "CENTER"; _text.PointSize = 48.0f;