diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2023-10-15 14:15:53 +0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2023-10-15 14:15:53 +0300 |
commit | 41726ca942739f7283e0530aaa08cece365b3146 (patch) | |
tree | 5b8223980601248819177c057f8739a03d8b8cfc | |
parent | 0f122f206046d5230627c337ddf0d862f6957f03 (diff) | |
download | LibGui-41726ca942739f7283e0530aaa08cece365b3146.tar.gz LibGui-41726ca942739f7283e0530aaa08cece365b3146.tar.bz2 LibGui-41726ca942739f7283e0530aaa08cece365b3146.zip |
WLabeledSlider: Make height freely adjustable
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java | 9 |
1 files changed, 0 insertions, 9 deletions
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. * |