Issue 3281 in pharo: IconicButton graphic not centered

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3281 in pharo: IconicButton graphic not centered

pharo
Status: New
Owner: gazzaguru2
Labels: Milestone-1.2

New issue 3281 by gazzaguru2: IconicButton graphic not centered
http://code.google.com/p/pharo/issues/detail?id=3281

Quick fix: add the following

IconicButton

extent: newExtent
        "Update the graphic position to keep centered."
       
        super extent: newExtent.
        graphicalMorph ifNotNil: [graphicalMorph position: self center -  
(graphicalMorph extent // 2)]


Would be nicer to refactor "graphicalMorph" with the superclass "label"...


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3281 in pharo: IconicButton graphic not centered

pharo
Updates:
        Status: Closed

Comment #1 on issue 3281 by marcus.denker: IconicButton graphic not centered
http://code.google.com/p/pharo/issues/detail?id=3281

12252