From 41726ca942739f7283e0530aaa08cece365b3146 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Sun, 15 Oct 2023 14:15:53 +0300 Subject: WLabeledSlider: Make height freely adjustable --- .../io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/main') diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java index 3a2f967..a80327a 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java @@ -76,15 +76,6 @@ public class WLabeledSlider extends WAbstractSlider { this.label = label; } - @Override - public void setSize(int x, int y) { - if (axis == Axis.HORIZONTAL) { - super.setSize(x, 20); - } else { - super.setSize(20, y); - } - } - /** * Gets the current label of this slider. * -- cgit