Unwanted horizontal scrolling in attribute editor (windows, linux)
smtk exhibits a very unwanted behavior in the attribute editors. Redrawing after an analysis-view change is causing the view to scroll horizontally, presumably to better fit the contents. Attached video shows what happens when checking/unchecking one of the analysis boxes ("Include Void Material").
To reproduce (simplified 31-Jul-2021)
- Download the attached template file: bug.sbt
- Load that template into either modelbuilder or qtAttributePreview
- In the "Analysis" tab, click the "Fluid Flow" checkbox, which exposes some additional options.
- Resize the attribute editor horizontally so that part of the "body_force_density" field is hidden. (Note a horizontal scrollbar will appear at the bottom of the editor.)
- Click the "Include Void Material" checkbox. The view will scroll right to show more of the "body_force_density" item. This is the UNdesired behavior.
KEY OBSERVATION
Note that clicking the "Heat Transfer" checkbox does NOT effect the unwanted horizontal scroll. Some additional testing can show that
- A checkbox that changes the (vertical) layout of the analysis view does NOT trigger the unwanted scroll.
- A checkbox that does NOT change the analysis view layout DOES trigger the unwanted scroll behavior.
To reproduce the video (for reference only):
- Use a current build off smtk:master. I used the 2021-07-26 nightly at https://data.kitware.com/#collection/58fa68228d777f16d01e03e5/folder/60fe4e432fa25629b910e9f6
- You need the get the attribute template from the truchas-extensions repo https://gitlab.kitware.com/cmb/plugins/truchas-extensions .
- Start modelbuilder and open the template file at
truchas-extensions/simulation-workflows/Truchas.sbt
. - In the "Analysis" tab set the "Analysis" to "Truchas"
- Find and click on the "Fluid Flow" checkbox. Note that this is important to triggering the failure mode because it causes the "Body Force Density" field to be displayed below.
- Then click on the "Include Void Material" checkbox. The UI scrolls to the right which is NOT GOOD.
- Scroll back to the left and uncheck the "Include Void Materials" checkbox and, again, the UI scrolls to the right, NOT GOOD again.
Also note:
- I did NOT observe this problem with the macOS build (Qt 5.15.2)
- I DID observer this problem with the Windows (Qt 5.15.2) and Linux (Qt 5.12.9) builds
Edited by John Tourtellott