0

When creating a desktop application, I have created a Pop Up Button using interface builder:

enter image description here enter image description here

However, when I go on size inspector, the box for changing the height is greyed out:

enter image description here

Even if I change the font, the button itself won't get any bigger:

enter image description here

What should I do if I want a taller Pop Up Button?

jrturton
  • 118,105
  • 32
  • 252
  • 268
math4tots
  • 8,540
  • 14
  • 58
  • 95
  • Have you tried setting its height in the code? In the code try `CGRect rect = popup.frame;` frame.size.height = newHeight; [popup setFrame: rect];` – Aleks G Jul 04 '12 at 08:32
  • @AleksG I've just tried that right now, and it doesn't seem to work for me. – math4tots Jul 04 '12 at 09:56

1 Answers1

0

Check this answer, I'm not on a Mac right now so I can't test it, but I think it is related with the auto layout settings and the constraints.

Community
  • 1
  • 1
Bruno Ferreira
  • 942
  • 9
  • 22
  • I just tried it. but it looks like even after unchecking autolayout, the height option is still greyed out. – math4tots Jul 05 '12 at 07:52
  • Have you managed to solve this? I'm trying to do this right now myself, without much luck. – Martin Aug 30 '12 at 05:06