Skip to content

[Modal] Layout doesn't work with flex/padding styling #14070

Closed

Description

Problem Description

Modal works with a View that sets a height/width but gets funky with padding/flex styling. Need to figure out a better way to implement layout (this may involve splitting RNW Island into two different classes if layout diverges too much).

Currently Modal is getting the overflow of it's children and setting that to it's height/width. I'm not sure why add padding/flex to a child would change this overflow.

Steps To Reproduce

  1. Remove commented out lines in ModalPresentation.windows.js and ModalOnShow.windows.js
  2. Run Modal Example in playground-composition.cpp rntester
  3. Modal won't be the correct layout.

Expected Results

Modal has the correct layout

Activity

  1. added
    Needs: Triage 🔍
    on Nov 1, 2024
  2. added this to the Next milestone on Nov 4, 2024
  3. added
    Workstream: Component Parity
    Needs: Triage 🔍
    Area: Fabric
    New Architecture
    and removed
    Needs: Triage 🔍
    on Nov 4, 2024
  4. added and removed
    Needs: Triage 🔍
    on Nov 4, 2024
  5. TatianaKapos commented on Jan 29, 2025

    @TatianaKapos
    ContributorAuthor

    Fixed via #14256!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: FabricArea: LayoutArea: ModalNew ArchitectureWorkstream: Component Paritybug

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions