Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CPButton's sizeToFit method setting height too high

#174

When creating a new button, and no changes are made to the font used for its title, calling sizeToFit makes the button too high, resulting in a horizontal line at bottom of button (outside, but immediately adjacent to button's edge).

See discussion: http://groups.google.com/group/o...

Reported by Joubert · December 21st, 2008 @ 11:15 AM

State: assigned
Milestone: 0.7
Assigned to: Francisco Tolmasky Francisco Tolmasky

Activity

  1. ronin-756 (at lighthouseapp)
    ronin-756 (at lighthouseapp)
    • Tag set to @needtest

    Thanks for your bug report. Do you think you could provide us with sample code that illustrates this bug? You could upload a sample AppController.j here or more simply paste it on http://gist.github.com and link it here. It would definitely help to solve it quickly.

    March 23rd, 2009 @ 09:40 PM

  2. Joubert
  3. Joubert
  4. ronin-756 (at lighthouseapp)
    ronin-756 (at lighthouseapp)
    • Tag changed from @needtest to @acknowledged, cpbutton

    Thanks a lot for the test case.

    I get this error message on Firefox 3.0.8 with the latest build from the 0.7b branch : [Exception... "'- [CPButton sizeToFit] unrecognized selector sent to instance 0x000a53' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "" data: no]

    April 2nd, 2009 @ 08:24 AM

  5. Ross Boucher
    Ross Boucher
    • Milestone set to 0.7
    • Assigned user set to Francisco Tolmasky
    • State changed from new to assigned

    size to fit was temporarily removed from the code. francisco will put it back in soon.

    April 4th, 2009 @ 01:03 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.