#20 ✓resolved

Image Button Breaks in Firefox

Reported by nciagra | September 6th, 2008 @ 04:03 PM | in 0.5.2

In Firefox 3, declaring a button with an image without explicitly stating the size of the image causes the image to fail to display.

var button = [[CPButton alloc] initWithFrame:CGRectMake(0,0,300,150)];

[button setBordered:NO];

[button setImage:[[CPImage alloc] initWithContentsOfFile:"Resources/Layout/Logo.png" size:CGSizeMake(300,150)]]; //size is required. remove size and image fails to display

[view addSubview:button];

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins


Referenced by