private void OnGUI() { if (activeCourse == null) { return; } SetTabName(); DrawUnsavedChangesIndicator(); float width = chapterMenu.IsExtended ? TrainingMenuView.ExtendedMenuWidth : TrainingMenuView.MinimizedMenuWidth; Rect scrollRect = EditorDrawingHelper.GetNextLineRect(new Rect(width, 0f, position.size.x - width, position.size.y)); chapterMenu.Draw(); DrawChapterWorkflow(scrollRect); Repaint(); }