Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

[Linux] Application doesn't work properly with OS scaling

Open itlancer opened this issue 6 months ago • 2 comments

Problem Description

Application doesn't work properly with OS scaling for Linux.

Tested with multiple AIR versions, even with latest AIR 51.2.1.4 and AIR 51.2.1.3 with multiple different devices, OS versions (Ubuntu 22/24 LTS x86_64) with different applications. The same issue in all cases with non-100% scaling. There is no such issues with other platforms.

Related issues: https://github.com/airsdk/Adobe-Runtime-Support/discussions/1699#discussioncomment-12885396 https://github.com/airsdk/Adobe-Runtime-Support/issues/3066 https://github.com/airsdk/Adobe-Runtime-Support/issues/1669 https://github.com/airsdk/Adobe-Runtime-Support/issues/1123 https://github.com/airsdk/Adobe-Runtime-Support/issues/1425 https://github.com/airsdk/Adobe-Runtime-Support/issues/3241 https://github.com/airsdk/Adobe-Runtime-Support/issues/3498 https://github.com/airsdk/Adobe-Runtime-Support/issues/3505

Steps to Reproduce

Launch application with code below with Linux device with 200% scaling in OS.

Application example with sources attached. linux_scaling_bug.zip

package {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	public class LinuxScalingBug extends Sprite {
		
		public function LinuxScalingBug() {
			addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event):void {
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			var sprite:Sprite = new Sprite();
			sprite.graphics.beginFill(0xff0000);
			sprite.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
			sprite.graphics.endFill();
			addChild(sprite);
		}
	}
}

Actual Result: Application content will be shown for 1/4 of window: Image

Expected Result: Application content will be shown for whole window: Image

Known Workarounds

none

itlancer avatar May 26 '25 12:05 itlancer

Any news about Linux OS scaling ? Thanks. Same problem on Ubuntu ARM64.

pol2095 avatar Sep 09 '25 07:09 pol2095

Issue still exists using latest AIR 51.2.2.6 with Ubuntu 24.04 Wayland and 200% scaling.

itlancer avatar Nov 24 '25 15:11 itlancer