Color table presets should open at top of table, but they open at bottom
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The color table presets (Color Editor, Choose Preset) should open with the first entries in the table of data displayed, rather than the last. The following git diff fixes this, opening the display with the first row showing.
I am adding a scrollToTop() to pqColorPresetManager::showEvent().
diff --git a/Qt/Components/pqColorPresetManager.cxx b/Qt/Components/pqColorPrese index 40ad51f..8d6c911 100644 --- a/Qt/Components/pqColorPresetManager.cxx +++ b/Qt/Components/pqColorPresetManager.cxx @@ -362,6 +362,7 @@ void pqColorPresetManager::showEvent(QShowEvent *e) header->sectionSizeHint(1)); header->resizeSection(1, header->sectionSizeHint(1)); }
- this->Form->Gradients->scrollToTop(); }
void pqColorPresetManager::importColorMap()