mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Replaced snap util function with std::clamp.
This commit is contained in:
@@ -207,7 +207,7 @@ int LayerWidget::resizeGetHeight(int newWidth) {
|
||||
auto windowWidth = parentSize.width();
|
||||
auto windowHeight = parentSize.height();
|
||||
auto newLeft = (windowWidth - newWidth) / 2;
|
||||
auto newTop = snap(
|
||||
auto newTop = std::clamp(
|
||||
windowHeight / 24,
|
||||
st::infoLayerTopMinimal,
|
||||
st::infoLayerTopMaximal);
|
||||
|
Reference in New Issue
Block a user