diff --git a/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java b/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java index 6b78a80741..52f46ad963 100644 --- a/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java +++ b/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java @@ -666,12 +666,12 @@ public float getCurrentScale() { boolean isHorizontal = getCurrentAspect() >= 1.0; if (isHorizontal) { // horizontal orientation - mainAxisCurrent = getWindowWidth() - mBorderWidth * 2; + mainAxisCurrent = (getWindowWidth() - mBorderWidth * 2) * WidgetPlacement.worldToDpRatio(getContext()); mainAxisDefault = WidgetPlacement.floatDimension(getContext(), R.dimen.window_world_width); mainAxisMinMax = Pair.create(minWorldSize.first, maxWorldSize.first); } else { // vertical orientation - mainAxisCurrent = getWindowHeight() - mBorderWidth * 2; + mainAxisCurrent = (getWindowHeight() - mBorderWidth * 2) * WidgetPlacement.worldToDpRatio(getContext()); mainAxisDefault = WidgetPlacement.floatDimension(getContext(), R.dimen.window_world_width) * getCurrentAspect(); mainAxisMinMax = Pair.create(minWorldSize.second, maxWorldSize.second); }