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

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sun Apr 22 22:58:24 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 garycmartin):

 Replying to [comment:4 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.

 OK, just retested. 12.1.0 builds are now returning a value of 75 for
 allocation.y, in the old releases allocation.y returns 0. Not sure if this
 should be considered an issue with the 12.1.0 build, possibly effecting
 other Activities, or just something to fix in Clock? After retesting the
 patch on both old and new builds it does solve the issue for Clock (I'd
 previously seen Clock draw a grey screen when testing in previous
 releases, but this appears to be an existing, unrelated, interment bug on
 XO-1s I'd not noticed before, will investigate it separately and land this
 fix).

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


More information about the Bugs mailing list