Browse Source

Update colorspeedbutton.pas

lainz 6 years ago
parent
commit
8d8c76169c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      colorspeedbutton.pas

+ 4 - 4
colorspeedbutton.pas

@@ -425,9 +425,9 @@ begin
         end
         else
         begin
-          // ignore text size width
+          // ignore text size width and height
           PreferredWidth := 2 * M + S + GlyphWidth;
-          PreferredHeight := 2 * M + Max(GlyphHeight, TextSize.cy);
+          PreferredHeight := 2 * M + {Max(}GlyphHeight{, TextSize.cy)};
         end;
       end;
       blGlyphTop, blGlyphBottom:
@@ -439,9 +439,9 @@ begin
         end
         else
         begin
-          // ignore text size width
+          // ignore text size width and height
           PreferredWidth := 2 * M + S + GlyphWidth;
-          PreferredHeight := 2 * M + S + GlyphHeight + TextSize.cy;
+          PreferredHeight := 2 * M + S + GlyphHeight{ + TextSize.cy};
         end;
       end;
     end;