Revision: 17901
          http://sourceforge.net/p/gate/code/17901
Author:   markagreenwood
Date:     2014-04-24 12:59:58 +0000 (Thu, 24 Apr 2014)
Log Message:
-----------
extended the wait time before hiding the annotation editor to 3s from 1.5s to 
give you slightly more time to pin it, also added an explicit call to pack 
which should cause it sto shrink down when displaying a small window after a 
large one

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/docview/AnnotationEditor.java

Modified: gate/trunk/src/main/gate/gui/docview/AnnotationEditor.java
===================================================================
--- gate/trunk/src/main/gate/gui/docview/AnnotationEditor.java  2014-04-24 
12:51:01 UTC (rev 17900)
+++ gate/trunk/src/main/gate/gui/docview/AnnotationEditor.java  2014-04-24 
12:59:58 UTC (rev 17901)
@@ -472,9 +472,8 @@
     typeCombo.setSelectedItem(annType);
     featuresEditor.setSchema(schemasByType.get(annType));
     featuresEditor.setTargetFeatures(ann.getFeatures());
-    // popupWindow.doLayout();
-    popupWindow.validate();
     setEditingEnabled(true);
+    popupWindow.pack();
     setVisible(true);
     if(!pinnedButton.isSelected()) {
       hideTimer.restart();
@@ -848,7 +847,7 @@
   /**
    * Constant for delay before hiding the popup window (in milliseconds).
    */
-  protected static final int HIDE_DELAY = 1500;
+  protected static final int HIDE_DELAY = 3000;
 
   /**
    * Constant for the number of characters when changing annotation boundary

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to