Skip to content

Comments

Fixes #2739 PI options not visible on small screens#2756

Merged
rwmcintosh merged 2 commits intodevelopfrom
2739-pi-options-not-visible-on-small-screens
Jan 28, 2026
Merged

Fixes #2739 PI options not visible on small screens#2756
rwmcintosh merged 2 commits intodevelopfrom
2739-pi-options-not-visible-on-small-screens

Conversation

@rwmcintosh
Copy link
Member

@rwmcintosh rwmcintosh commented Jan 27, 2026

Fixes #2739 PI options not visible on small screens

Description

Calculate and apply a min height for the control. The scrollbar would not be displayed until this was done

Type of change

Please mark relevant options with an x in the brackets.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires documentation changes (link at least one user or developer documentation issue):
  • Algorithm update - updates algorithm documentation/questions/answers etc.
  • Other (please describe):

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Integration tests
  • Unit tests
  • Manual tests
  • No tests required

Reviewer checklist

Mark everything that needs to be checked before merging the PR.

  • Check if the code is well documented
  • Check if the behavior is what is expected
  • Check if the code is well tested
  • Check if the code is readable and well formatted
  • Additional checks (document below if any)
  • Check if documentation update issue(s) are created if the option This change requires a documentation update above is selected

Screenshots (if appropriate):

image

Questions (if appropriate):

@rwmcintosh rwmcintosh self-assigned this Jan 27, 2026
Copilot AI review requested due to automatic review settings January 27, 2026 20:27
@rwmcintosh rwmcintosh added this to V12.3 Jan 27, 2026
@rwmcintosh rwmcintosh review requested due to automatic review settings January 27, 2026 20:27
@rwmcintosh
Copy link
Member Author

Before
image

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 27, 2026

Greptile Overview

Greptile Summary

Fixed scrollbar visibility issue for Parameter Identification options on small screens by calculating and applying a minimum height to the pivot grid control.

  • Added OptimalHeight property to UxPivotGrid that calculates the minimum height needed by summing header areas and accounting for horizontal scrollbar
  • Applied the calculated minimum height when binding data to ensure scrollbar displays correctly
  • Includes minor formatting improvements (spacing around braces) for consistency with codebase style
  • The fix ensures the control's minimum size is set only when the layout item is visible

Confidence Score: 5/5

  • This PR is safe to merge - it's a focused bug fix with clear logic and no risk of side effects
  • The change is minimal, well-targeted, and solves a specific UI issue. The OptimalHeight calculation uses standard DevExpress API methods, and the minimum size is only applied when the control is visible. The fix has been manually tested per the PR description.
  • No files require special attention

Important Files Changed

Filename Overview
src/OSPSuite.UI/Controls/UxPivotGrid.cs Added OptimalHeight property to calculate minimum height for pivot grid display, plus minor formatting cleanup for spacing consistency
src/OSPSuite.UI/Views/ParameterIdentifications/CategorialParameterIdentificationRunModeView.cs Sets MinimumSize using OptimalHeight to ensure scrollbar visibility when control is shown

Sequence Diagram

sequenceDiagram
    participant View as CategorialParameterIdentificationRunModeView
    participant Control as UxPivotGrid
    participant ViewInfo as PivotGridViewInfo
    
    Note over View: BindTo(categorialRunModeDTO)
    View->>View: Check if layoutItemPivotGrid.Visibility != Never
    alt Control is visible
        View->>Control: Get OptimalHeight
        Control->>Control: EnsureViewInfoIsCalculated()
        Control->>ViewInfo: Get Data.ViewInfo
        ViewInfo-->>Control: Return ViewInfo
        Control->>ViewInfo: Get RowAreaFields.Bounds.Height
        Control->>ViewInfo: Get FilterHeaders.Bounds.Height
        Control->>ViewInfo: Get RowHeaders.Bounds.Height
        Control->>ViewInfo: Get DataHeaders.Bounds.Height
        Control->>ViewInfo: Check IsHScrollBarVisible
        alt Horizontal scrollbar is visible
            Control->>ViewInfo: Add ScrollBarSize.Height
        end
        Control-->>View: Return calculated height
        View->>Control: Set MinimumSize with OptimalHeight
        Note over Control: Scrollbar now displays correctly
    end
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

…eterIdentificationRunModeView.cs

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@rwmcintosh rwmcintosh requested review from Copilot and removed request for Copilot January 27, 2026 20:41
@rwmcintosh rwmcintosh merged commit c53c753 into develop Jan 28, 2026
12 checks passed
@rwmcintosh rwmcintosh deleted the 2739-pi-options-not-visible-on-small-screens branch January 28, 2026 12:13
@github-project-automation github-project-automation bot moved this to Done in V12.3 Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

PI options not visible on small screens

2 participants