Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[Bug] Dynamic content doesn't change popup size / height

Open Giuseppetm opened this issue 2 years ago • 10 comments

Description

Switching the content of the popup through a property that replaces the current content doesn't change the height / size of the popup.

Reproduction Sample

PopupTest.zip

Steps to Reproduce

  1. Press the button "Press me" to change the content of the popup.

Expected Behavior

The size / height of the popup changes dynamically based on its content.

Actual Behavior

The size / height of the popup remains the same as the first content rendered.

Basic Information

  • Version with issue: 1.0.0
  • Last known good version: none
  • IDE: VS
  • Platform Target Frameworks:
    • Android: 11.0

Workaround

None

Reproduction imagery

image image

This problem also applies to the horizontal width of the popup content: in this case the text I mentioned in #439 is not visible anymore, but the width remains broken.

image image

Giuseppetm avatar Jun 06 '22 09:06 Giuseppetm

Any update on this? @pictos

Giuseppetm avatar Jul 05 '22 12:07 Giuseppetm

@Giuseppetm didn't look into this issue yet. For the next release I focused on apple platform.

pictos avatar Jul 05 '22 15:07 pictos

Any news on this @pictos ?

manuelelucchi avatar Jul 22 '22 09:07 manuelelucchi

Looks like it has something to do with the ScrollView. Need more investigation

pictos avatar Aug 14 '22 02:08 pictos

Same problem here

image

EduardoReisDev avatar Sep 10 '22 05:09 EduardoReisDev

@pictos, não sei se isso ajuda kk

EduardoReisDev avatar Sep 10 '22 05:09 EduardoReisDev

@EduardoReisDev if you set the horizontal/verticalOptions = "Center" does it fix on iOS?

pictos avatar Sep 10 '22 16:09 pictos

@pictos, nop!

image

EduardoReisDev avatar Sep 10 '22 16:09 EduardoReisDev

@EduardoReisDev I'm talking about the popup control and not the layout

pictos avatar Sep 10 '22 16:09 pictos

Does not work too. Same problem on Windows and Android. Height is miscalculated on Windows and width on Android.

SimonSchnitker avatar Sep 20 '22 15:09 SimonSchnitker

Any idea how to solve this on iOS ?

MateuszLas421 avatar May 15 '23 16:05 MateuszLas421

Fixed in https://github.com/CommunityToolkit/Maui/pull/1320

brminnick avatar Aug 08 '23 19:08 brminnick