private void OnPanelChanged() { if (this._calculateNextChange) { this._calculateNextChange = false; this.UpdateScrollbars(true); if (this.calculatedNextChangeCallback != null) { UIDraggablePanel.CalculatedNextChangeCallback calculatedNextChangeCallback = this.calculatedNextChangeCallback; this.calculatedNextChangeCallback = null; calculatedNextChangeCallback(); } } else if (!Application.isPlaying || this._calculateBoundsEveryChange) { this.UpdateScrollbars(true); } else { this._panelMayNeedBoundCalculation = true; } }
private void OnPanelChanged() { if (this._calculateNextChange) { this._calculateNextChange = false; this.UpdateScrollbars(true); if (this.calculatedNextChangeCallback != null) { UIDraggablePanel.CalculatedNextChangeCallback calculatedNextChangeCallback = this.calculatedNextChangeCallback; this.calculatedNextChangeCallback = null; calculatedNextChangeCallback(); } } else if (!Application.isPlaying || this._calculateBoundsEveryChange) { this.UpdateScrollbars(true); } else { this._panelMayNeedBoundCalculation = true; } }