Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

SetAspectRatio should constrain the content area consistently across platforms

Offen
#64 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
desktop

Rechercherichtung

Start at Window::SetAspectRatio and trace the platform-specific implementations, especially Windows WM_SIZING and programmatic resize handling, alongside Linux geometry hints and macOS contentAspectRatio. Done means the Flutter content area, rather than the whole window including non-client decorations, maintains the requested aspect ratio consistently across platforms.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

Window::SetAspectRatio() behaves differently per platform:

  • macOS constrains the content area (contentAspectRatio), unless the content is full-size.
  • Windows constrains the whole window rect in WM_SIZING, title bar and borders included, so the Flutter view ends up with a different ratio.
  • Linux uses geometry hints on the window, and users report the content not matching the ratio.

Expected: the ratio applies to the content area on all platforms. On Windows, subtract the non-client size before applying the ratio in WM_SIZING, and apply it to programmatic resizes too.

Background:

  • leanflutter/window_manager#437: exclude the title bar from the aspect-ratio calculation
  • leanflutter/window_manager#520: actual window ratio differs from the one set
  • leanflutter/window_manager#566: setAspectRatio behaves differently on Windows and Linux
Vorherrschende Sprache
C++
Sterne
34
Forks
7
Ø Merge
3 T. 1 Std.
Gemergte PRs (30 T.)
1

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus libnativeapi/nativeapi

Alle Issues in libnativeapi/nativeapi

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.