[haiku-commits] Re: haiku: hrev45588 - src/kits/tracker

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Tue, 30 Apr 2013 11:26:45 -0400

On Apr 30, 2013, at 11:12 AM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:
> Am 30/04/2013 16:45, schrieb John Scipione:
>> 
>> I don't want this menu field to adjust its width based on its contents 
>> because
>> that would alter the width of the window so I need to do both
>> SetExplicitMinSize and SetExplicitMaxSize.
> 
> Do you mean resize in general, or only if a menu item gets chosen?

Well I mean the width of the menu field won't change based on the width of the 
selected menu item but it will update its size based on your font size.

Before it was being set to the width of the widest item, but, that sometimes 
made the window too wide if you have a wide mime type on your system (or if the 
translation is wide). So as a compromise I set the width to a fixed width which 
should accommodate the menu item most of the time. Maybe it would be better to 
just SetExplicitMinSize and then if you selected a wider item it could expand 
the window??

Other related posts: