[Bugs] #3394 UNSP: Clock activity draws off the screen

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Mar 26 14:15:13 EDT 2012


#3394: Clock activity draws off the screen
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  manuq                      
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Clock                      |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:  12.1.0                     
Distribution:  OLPC                       |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by manuq):

 Solved.  Seems that the expose callback now is not relative to the
 parent's position (if it ever was), so this solves the issue:

 -        self._center_x = int(allocation.x + allocation.width / 2.0)
 -        self._center_y = int(allocation.y + allocation.height / 2.0)
 +        self._center_x = int(allocation.width / 2.0)
 +        self._center_y = int(allocation.height / 2.0)

 I will send the corresponding patch to sugar-devel.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3394#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list