Skip to content

Restrict autoScale to Allowed Values Only #182

@ShahzaibIbrahim

Description

@ShahzaibIbrahim

We need to enforce stricter validation on the autoScale parameter. Currently, unsupported values such as half and int200 are being used. To ensure consistent functionality and reduce errors, we will now throw an SWT error if an unsupported value is provided.

Allowed Values:

  • quarter
  • exact
  • false
  • Any numeric value (e.g., 166)

Disallowed Values:

  • half
  • int200
  • Any value not included in the above whitelist

Expected Behavior:

Users attempting to set autoScale to any value outside the allowed list will encounter an SWT error with a clear message indicating the invalid value and the list of permitted options.

Metadata

Metadata

Labels

HiDPIA HiDPI-Related Issue or FeatureHiDPI/Integer200HiDPI issues specific to using "integer" or "integer200" scaling modeSWTIssue for SWT

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions