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 via email to