MantisBT - ParaView
View Issue Details
0013353ParaView(No Category)public2012-08-13 20:242012-10-29 17:04
Alan Scott 
Kyle Lutz 
normalminorhave not tried
closedfixed 
git-master 
4.03.98.0 
Sandia
13353-color-presets-scroll-to-top
incorrect functionality
0013353: Color table presets should open at top of table, but they open at bottom
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()
No tags attached.
Issue History
2012-08-13 20:24Alan ScottNew Issue
2012-08-13 20:24Alan ScottAssigned To => Alan Scott
2012-08-13 20:25Alan ScottStatusbacklog => todo
2012-08-13 20:25Alan ScottStatustodo => active development
2012-08-13 20:29Alan ScottNote Added: 0028999
2012-08-13 20:29Alan ScottStatusactive development => gatekeeper review
2012-08-13 20:29Alan ScottResolutionopen => fixed
2012-08-14 09:40Utkarsh AyachitAssigned ToAlan Scott => Kyle Lutz
2012-08-14 09:40Utkarsh AyachitStatusgatekeeper review => todo
2012-08-14 09:40Utkarsh AyachitTarget Version => 4.0
2012-08-16 09:41Kyle LutzStatustodo => active development
2012-08-16 09:50Kyle LutzTopic Name => 13353-color-presets-scroll-to-top
2012-08-16 09:50Kyle LutzNote Added: 0029007
2012-08-16 09:50Kyle LutzStatusactive development => gatekeeper review
2012-08-16 09:54Kyle LutzNote Added: 0029008
2012-08-17 14:26Utkarsh AyachitFixed in Version => git-master
2012-08-17 14:27Utkarsh AyachitStatusgatekeeper review => customer review
2012-08-17 14:27Utkarsh AyachitNote Added: 0029020
2012-09-20 17:13Alan ScottNote Added: 0029237
2012-09-20 17:13Alan ScottStatuscustomer review => closed
2012-10-29 17:04Utkarsh AyachitFixed in Versiongit-master => 3.98.0

Notes
(0028999)
Alan Scott   
2012-08-13 20:29   
Please install the patch included in this bug to the paraview tree.

Thanks.
(0029007)
Kyle Lutz   
2012-08-16 09:50   
Merge topic '13353-color-presets-scroll-to-top' into next

5404cdc Scroll the color presets list to the top when opening
(0029008)
Kyle Lutz   
2012-08-16 09:54   
The issue is resolved.

Before when opening the color presets dialog via the following steps:

  1. Sources -> Wavelet
  2. Apply
  3. Representation -> Surface
  4. Color Mode -> RTData
  5. Edit Color
  6. Choose Preset

the list of presets would open to the middle.

Now when opening the color presets dialog the list is scrolled to the top and the first item is displayed at the top.
(0029020)
Utkarsh Ayachit   
2012-08-17 14:27   
merged in master, if applicable
(0029237)
Alan Scott   
2012-09-20 17:13   
Tested local server, Linux, master.