Opened 8 years ago

Last modified 4 months ago

#9546 assigned bug

Refactor StyledEdit's new document window positioning code into shared.

Reported by: mmadia Owned by: leavengood
Priority: normal Milestone: R1.1
Component: Kits Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #8735
Platform: All

Description (last modified by mmadia)

StyleEdit contains code for cascading newly opened document windows. i.e. (File -> New) or (CMD + N) will result in a new window that is drawn slightly down and to the right. If enough new windows are created, instead of spilling off the screen, the starting position will be at the top of the screen.

IIRC, the code is:

This functionality should be refactored and relocated into src/kits/shared. That will allow other programs to make use of it, creating a more consistent and uniform behavior.

(From ticket:8735#comment:5) axeld: You could either create the window first, and then do the cascading with the window as argument (which could could use to retrieve the decorator frame), or pass in the last opened (or even current) window as a reference to compute the offset from.

Change History (3)

comment:1 by mmadia, 8 years ago

Description: modified (diff)

comment:2 by leavengood, 8 years ago

Owner: changed from nobody to leavengood
Status: newassigned

As per ticket:8735#comment:8, I will take ownership of this, since it relates to #8556.

comment:3 by pulkomandy, 4 months ago

Milestone: R1R1.1
Note: See TracTickets for help on using tickets.