Skip to content

Commit

Permalink
CATROID-1604 Fix resize/maximize button (#4981)
Browse files Browse the repository at this point in the history
  • Loading branch information
reichli authored Jul 31, 2024
1 parent 1a4dde7 commit e5f965b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Catroid: An on-device visual programming system for Android devices
* Copyright (C) 2010-2022 The Catrobat Team
* Copyright (C) 2010-2024 The Catrobat Team
* (<http://developer.catrobat.org/credits>)
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -27,7 +27,6 @@
import android.app.PendingIntent;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.nfc.NdefMessage;
Expand Down Expand Up @@ -301,8 +300,8 @@ void calculateScreenSizes() {
ScreenValues.currentScreenResolution =
ScreenValues.currentScreenResolution.flipToFit(projectResolution);

resizePossible = ScreenValues.currentScreenResolution.sameRatioOrMeasurements(projectResolution)
|| ProjectManager.getInstance().getCurrentProject().isCastProject();
resizePossible = !ScreenValues.currentScreenResolution.sameRatioOrMeasurements(projectResolution) &&
!ProjectManager.getInstance().getCurrentProject().isCastProject();

if (resizePossible) {
stageListener.setMaxViewPort(projectResolution.resizeToFit(ScreenValues.currentScreenResolution));
Expand Down

0 comments on commit e5f965b

Please sign in to comment.