#4102 NORM Retriag: Tray should allow for setting flush_left or flush_right

Zarro Boogs per Child bugtracker at laptop.org
Mon Jun 23 11:57:54 EDT 2008


#4102: Tray should allow for setting flush_left or flush_right
--------------------------+-------------------------------------------------
  Reporter:  erikb        |       Owner:  marco             
      Type:  enhancement  |      Status:  new               
  Priority:  normal       |   Milestone:  Retriage, Please! 
 Component:  sugar        |     Version:  Git as of bug date
Resolution:               |    Keywords:                    
  Verified:  0            |    Blocking:                    
 Blockedby:               |  
--------------------------+-------------------------------------------------

Comment(by Eben):

 I think this is a reasonable addition to the Tray control, though I'm not
 exactly sure what the flush_left/right terms mean (And does the tray
 really add items to the left by default?)

 Here are the variables I see at play:

 The tray should allow choosing which edge the items within it align to
 (#7015). Naturally, this is left/right for HTrays, and top/bottom for
 VTrays.  Next, we wish for (and this ticket requests) a way to determine
 whether items added to the tray get added to the head or tail of the list,
 where we can consider the head to be the end to which the tray is
 currently aligned.  This could be set as a property (such as, I presume,
 the flush_left/right proposal intends), or could be provided with
 add_first/last or prepend/append/insert methods (akin to a Toolbar).
 Finally, there's the question of overflow, which only really applies when
 an item is appended to the list: If the newly added item would lie beyond
 the edge of the tray, does the tray auto-scroll to make it visible?  I
 would say yes, but this could be added either as a property of the tray,
 or as a method (scroll_to_end?) and called manually after the item is
 added.

 Sorry for the treatise, but I needed to lay it all out there to better
 define exactly what we're after.  Thoughts?

-- 
Ticket URL: <http://dev.laptop.org/ticket/4102#comment:3>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list