Beispiel #1
0
        void Update()
        {
            var width  = rt.rect.width;
            var height = rt.rect.height;

            if (width != PreviousWidth || height != PreviousHeight)
            {
                Layout.Width  = width;
                Layout.Height = height;
                Context.scheduleLayout();
                PreviousWidth  = width;
                PreviousHeight = height;
            }
        }
Beispiel #2
0
 void ILayoutController.SetLayoutHorizontal()
 {
     Layout.MarkDirty();
     Context.scheduleLayout();
 }