From 6dd8c09c27de60cfcfc399080e64c2b0340acaf8 Mon Sep 17 00:00:00 2001 From: Sapphire <98045970+sapphirescript@users.noreply.github.com> Date: Wed, 1 Jan 2025 16:51:03 -0600 Subject: [PATCH] Fix the Width Slider Not Translating Smoothly (#1391) # Description The slider would jump around to fix the constraints because a division symbol was mistakenly replaced with a multiplication symbol, this fixes that. ---

Media

![edf53e72db6e17d97df08940f04e72d7](https://github.com/user-attachments/assets/b4ebcca5-e56b-41ab-8200-a2235d9b6f7c)

--- # Changelog :cl: - fix: The width slider in the profile editor view now moves correctly regarding the height slider. Co-authored-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> --- Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs index ce14882d167..64db3eab12f 100644 --- a/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs @@ -1393,7 +1393,7 @@ private void UpdateDimensions(SliderUpdate updateType) if (updateType == SliderUpdate.Height || updateType == SliderUpdate.Both) if (ratio < 1 / sizeRatio || ratio > sizeRatio) - widthValue = heightValue * (ratio < 1 / sizeRatio ? (1 / sizeRatio) : sizeRatio); + widthValue = heightValue / (ratio < 1 / sizeRatio ? (1 / sizeRatio) : sizeRatio); if (updateType == SliderUpdate.Width || updateType == SliderUpdate.Both) if (ratio < 1 / sizeRatio || ratio > sizeRatio)