Bug 120789 - Incorrect auto-parenting behaviour
Summary: Incorrect auto-parenting behaviour
Status: RESOLVED DUPLICATE of bug 117838
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: HI normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-25 19:43 UTC by Andrew Walker
Modified: 2006-01-30 18:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2006-01-25 19:43:43 UTC
Version:           HEAD (using KDE KDE 3.5.0)
Installed from:    Compiled From Sources
OS:                Linux

PROBLEM:
The cleanup layout functionality does not always behave as it should

STEPS TO REPRODUCE:
Start Kst
Create a window with 4 plots
Right click on one of the plots and select Cleanup Layout...Custom...
Set the number of columns to 2 and hit OK
Enter layout mode
Stack the 4 plots on top of one another in the center of the window
Right click on the uppermost plot and select Cleanup Layout...Default Tile

RESULTS:
Not always predictable, but most likely you'll get 2 plots each of the full
window height and half the window width. The other two plots are hidden.

EXPECTED RESULTS:
4 plots each taking one quarter of the window.
Comment 1 Netterfield 2006-01-25 20:34:27 UTC
This behavior is not related to 'cleanup layout' as much as it is to layout mode behavior.

What happens is that when you move a view object in layout mode, it becomes the child of the smallest view object which fully encloses it.  If you have two plots very nearly the same size, and you dump one on the other (lined up on the corner), then you have a good chance of one becoming the child of the other.  

Naturally, cleanup layout only sees the parents.

The way to fix this is, perhaps, to not let children be more than 95% the size of the parents.  Or to not dump plots exactly on top of each other in layout mode.
Comment 2 George Staikos 2006-01-25 21:23:13 UTC
  What will really help is when we have a drop target indicator.
Comment 3 Andrew Walker 2006-01-26 19:53:27 UTC
Should be fixed for 1.2.1 release
Comment 4 George Staikos 2006-01-30 18:48:34 UTC

*** This bug has been marked as a duplicate of 117838 ***