From: <no...@so...> - 2002-12-09 02:02:38
|
Bugs item #590430, was opened at 2002-08-02 20:32 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=590430&group_id=588 Category: editor core Group: severe bug Status: Open Resolution: None Priority: 5 Submitted By: PDoubleYa (pdoubleya) Assigned to: Nobody/Anonymous (nobody) Summary: Dialog boxes opening off-scren Initial Comment: Using JEdit 4.0.3 using JDK 1.4 on Win2K sp2. I first noticed this in the XML plugin, in Global options, in trying to set catalogs; then again, just trying File/Open from the regular editor. Dialog boxes open in the top-left corner of my screen, essentially "floating" off screen to the top left. I can see the lower corner of the dialog box, basically the OK and Cancel keys. I can't reach the menu bar and so can't reposition the windows. So--I can't open files! I've been trying out JEdit on another Win2K machine with JDK 1.3.1_04, and that's been fine. Ideas? This is on an HP Omnibook 6100 laptop; it could be video drivers although all other apps are well-behaved. Thanks PDoubleYa ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-12-08 18:02 Message: Logged In: NO Experiencing the same thing on Win2K SP3 with JRE 1.4.1.01. It does the same thing from JRE 1.3.1.02. Changing screen resolution has no effect at all. First noticed it in the Background plugin, then everywhere else.<br><br>Adding this to ~/.jedit/properties fixed things:<br>vfs.browser.dialog.x=100<br> vfs.browser.dialog.y=100 ---------------------------------------------------------------------- Comment By: PDoubleYa (pdoubleya) Date: 2002-09-01 01:49 Message: Logged In: YES user_id=588606 I just figured this out, at least in JEdit 4.1pre4. The problem is in GUIUtilities.loadGeometry(). The position for the file-open dialog (vfs.browser.dialog) is being overridden to a negative value for x,y. The first part of the code, that figures out the position based on the screen size, is correct. The bug appears to be in looking up the location using the properties file: x = jEdit.getIntegerProperty(name + ".x",x); y = jEdit.getIntegerProperty(name + ".y",y); In my system, there are no such properties, or at least, they come back with negative values (-169, -500 something like that) I replaced this with int _x = jEdit.getIntegerProperty(name + ".x",x); int _y = jEdit.getIntegerProperty(name + ".y",y); if ( _x >= 0 ) x = _x; if ( _y >= 0 ) y = _y; This preserves the original values as long as the values read from properties are negative. With this fix, the file/open dialog opens in the middle of the screen--meaning I can use it yay! Tomorrow I will look at the code for 4.0.3 and see if the same bug is there. For some reason this has been working for other people; could be because there was a properties file not found or badly installed. Regards pdoubleya ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=590430&group_id=588 |