protected void SetupOverflowAndScroll(OverflowType overflow, Margin scrollBarMargin, ScrollType scroll, ScrollBarDisplayType scrollBarDisplay, int flags) { if (overflow == OverflowType.Hidden) { container = new Container(); rootContainer.AddChild(container); UpdateMask(); container.SetXY(_margin.left * GRoot.contentScaleFactor, _margin.top * GRoot.contentScaleFactor); } else if (overflow == OverflowType.Scroll) { container = new Container(); rootContainer.AddChild(container); scrollPane = new ScrollPane(this, scroll, _margin, scrollBarMargin, scrollBarDisplay, flags); } else if (_margin.left != 0 || _margin.top != 0) { container = new Container(); rootContainer.AddChild(container); container.SetXY(_margin.left * GRoot.contentScaleFactor, _margin.top * GRoot.contentScaleFactor); } SetBoundsChangedFlag(); }
protected void SetupOverflow(OverflowType overflow) { if (overflow == OverflowType.Hidden) { container = new Container(); rootContainer.AddChild(container); UpdateClipRect(); container.SetXY(_margin.left, _margin.top); } else if (_margin.left != 0 || _margin.top != 0) { container = new Container(); rootContainer.AddChild(container); container.SetXY(_margin.left, _margin.top); } }
protected void SetupOverflow(OverflowType overflow) { if (overflow == OverflowType.Hidden) { container = new Container(); rootContainer.AddChild(container); UpdateMask(); container.SetXY(_margin.left, _margin.top); } else if (_margin.left != 0 || _margin.top != 0) { container = new Container(); rootContainer.AddChild(container); container.SetXY(_margin.left, _margin.top); } SetBoundsChangedFlag(); }
protected void SetupOverflow(OverflowType overflow) { if (overflow == OverflowType.Hidden) { container = new Container(); rootContainer.AddChild(container); UpdateClipRect(); container.SetXY(_margin.left, _margin.top); } else if (_margin.left != 0 || _margin.top != 0) { container = new Container(); rootContainer.AddChild(container); container.SetXY(_margin.left, _margin.top); } SetBoundsChangedFlag(); }