[haiku-commits] Re: r43199 - in haiku/trunk/src: apps/deskcalc kits/shared

  • From: pulkomandy <pulkomandy@xxxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 6 Nov 2011 11:13:45 +0100

> Another small tweak I did was to adjust the minimum basic mode width so that
> the window is flush with the tab.

> +static const float kMinimumWidthCompact              = 130.0f;
> +static const float kMaximumWidthCompact              = 400.0f;
> +static const float kMinimumHeightCompact     = 20.0f;
> +static const float kMaximumHeightCompact     = 60.0f;
>  
> +// Basic mode size limits are defined in CalcView.h so
> +// that they can be used by the CalcWindow constructor.
>  
> +static const float kMinimumWidthScientific   = 240.0f;
> +static const float kMaximumWidthScientific   = 400.0f;
> +static const float kMinimumHeightScientific  = 200.0f;
> +static const float kMaximumHeightScientific  = 400.0f;

This won't work as the tab size may change with localization of the name
as well as non-default font sizes. There is a way to get the actual tab
size somewhere ? (GetDecorInfo or something similar ?)

-- 
Adrien.

Other related posts: