Browse Source

label vertical align

Johann ELSASS 4 years ago
parent
commit
122a26b455
1 changed files with 4 additions and 1 deletions
  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;