This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 53786 - Giving focus to a new form editor window often resizes old window
Summary: Giving focus to a new form editor window often resizes old window
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: USABILITY
: 53699 53702 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-21 04:57 UTC by Jesse Glick
Modified: 2008-12-22 10:51 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My Windows2Local (gzipped TAR format) (9.87 KB, application/octet-stream)
2005-01-23 17:24 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-01-21 04:57:43 UTC
Observed in 4.0 (on a friend's machine) and 4.1
(on mine). Open a form and select some bean in
Inspector. Make Inspector/Palette windows wider
(drag left margin to the left). Click on some
other window, or double-click a bean to transfer
focus to the editor mode, etc.; the
Inspector/Palette mode gets resized back to its
original width. Not known to occur with other
windows than form editor windows.
Comment 1 Jesse Glick 2005-01-23 17:24:11 UTC
Major usability problem for the form editor. I can barely use the
Properties or Inspector windows because every time I click on
something else, the Palette window reverts to taking up about 80% of
vertical space, then about 10% each for Inspector and Properties. Have
to resize each window before I want to use it.

May be related to a serious problem I also see with refactoring
functionality (original description in issue #53440), which is that
whenever the Find Usages or Refactoring window opens (at the bottom of
the screen), it has no visible height, so needs to be resized using
the splitter; and sending focus to any other window sets its height
back to zero. Same for Debugger windows, actually. In fact any window
other than the Documents area and those windows which I have in
sliding mode, are nearly unusable for me at the moment.

Moving all the form windows to the left side of the screen (where I
have no sliding windows) seems to improve things - they still resize a
bit when I change focus, but now the "sticky" values are usable. Does
not work for Find Usages/Refactoring at all since there is no way to
permanently set a location for these - each window is created from
scratch and placed at the bottom edge (with zero height).
Comment 2 Jesse Glick 2005-01-23 17:24:49 UTC
Created attachment 19883 [details]
My Windows2Local (gzipped TAR format)
Comment 3 Jesse Glick 2005-01-25 23:09:47 UTC
The zero-height F.U. window problem disappeared after I deleted my
Windows2Local and restarted the IDE.
Comment 4 Jan Stola 2005-01-27 11:03:54 UTC
*** Issue 53702 has been marked as a duplicate of this issue. ***
Comment 5 Jan Chalupa 2005-02-03 07:25:16 UTC
I noticed the problem with the Form windows too. Having Navigator
docked on the right side of the editor seemed to make things even
worse. Very annoying.
Comment 6 Milos Kleint 2005-02-03 09:42:43 UTC
it's the never ending story with the nested splitpanes. I'll try do my
best but the whole concept is generally broken IMO.
Comment 7 Milos Kleint 2005-02-03 12:15:01 UTC
reassigning to standa, who is developing a new component that should
replace the netste splitpanes nightmare.
Comment 8 Jan Stola 2005-02-10 09:54:31 UTC
*** Issue 53699 has been marked as a duplicate of this issue. ***
Comment 9 Stanislav Aubrecht 2005-02-17 14:39:14 UTC
there's no good fix for this problem short of rewriting the nested
split panes from scratch.

this fix solves the problem with nested panes collapsing to zero size
(e.g. the attached windows2local) but there are still some split pane
configurations where the split bar will jump back after being moved.


Checking in src/org/netbeans/core/windows/view/ViewHelper.java;
/cvs/core/windows/src/org/netbeans/core/windows/view/ViewHelper.java,v
 <--  ViewHelper.java
new revision: 1.12; previous revision: 1.11
done
Comment 10 Marian Petras 2005-03-18 11:18:53 UTC
This bug is not fixed.

I am able to reproduce the bug and the result is that the form editor is
virtually unusable.

Steps to reproduce:
0) Start NetBeans with an empty user directory.
1) Close the following windows: Welcome, Runtime, Files
    (by clicking on the X button in the window titles).
2) Open NetBeans module debuggerjpda/ui (without "required projects").
3) In the Projects window, expand the project's root node
   and the Source Packages node in it.
4) Resize the Projects window - make it wider.
5) Expand package node "org.netbeans.modules.debugger.jpda.ui.breakpoints".
6) Double-click on node "ActionsPanel.java".
7) Close the following windows: Inspector, Palette
    (by clicking on the X button in the window titles).
8) Make the following windows sliding: Projects, Navigator
    (by clicking on the auto-hide buttons in the window titles).
9) Click somewhere in the Properties window (currently empty).
10) Click somewhere in the form.
11) Click on the title of the Properties window.
12) Click somewhere in the form.
13) Widen the Properties window, so that all three buttons Properties, Events
    and Code are displayed in a single row.
14) In the Properties window, click on the name of property "enabled".

The Properties window shrinks so that it is very narrow or even invisible.

Try to resize the Properties window in order to make it usable again and click
on the form. The Properties window shrinks again! The form editor is virtually
unusable.

OS: Linux - Fedora Core 1 running on Intel Pentium M
Java: java version "1.5.0_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
      Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
Comment 11 Stanislav Aubrecht 2005-03-18 12:21:41 UTC
this used to work but because of issue 55519 the problem is back.

i suggest to roll the fix for 55519 back. imho it's better to have editor pane
that doesn't fill remaining space correctly than having properties panel
shrinking to zero width.

any comments milos?
Comment 12 Stanislav Aubrecht 2005-03-29 13:37:30 UTC
fixed

i rolled the fix for issue #55519 back and reopened that issue instead.

Checking in windows/src/org/netbeans/core/windows/view/ViewHelper.java;
/cvs/core/windows/src/org/netbeans/core/windows/view/ViewHelper.java,v  <-- 
ViewHelper.java
new revision: 1.14; previous revision: 1.13
done
Comment 13 mklos 2005-04-01 15:24:44 UTC
Ran into this problem today on version 4.0 under Windows XP and don't know why
it was working ok before.
Found workaround
1. Press and hold CTRL key
2. Move mouse over splitpane bar until left-right sizing arrow appears
3. Press left mouse button and drag to new size
4. Release mouse button
5. Release CTRL key
The splitpane is no longer a splitpain.

Comment 14 Petr Chytil 2007-01-03 15:24:40 UTC
closed, wasn't reopened for a long period of time.