Explorar o código

label vertical align

Johann ELSASS %!s(int64=4) %!d(string=hai) anos
pai
achega
122a26b455
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lazpaint/umenu.pas

+ 4 - 1
lazpaint/umenu.pas

@@ -538,7 +538,10 @@ begin
            else
              vfc.Height := vfc.PreferredSize.cy;
          end else
-           tb.Controls[j].Height := tbNormalHeight-3;
+         if tb.Controls[j] is TLabel then
+           tb.Controls[j].Height := tbNormalHeight - DoScaleY(3, OriginalDPI, FTargetDPI)
+         else
+           tb.Controls[j].Height := tbNormalHeight - DoScaleY(2, OriginalDPI, FTargetDPI);
          if tb.Controls[j] is TToolBar then
          begin
            minNextX := MaxLongInt;