Dialog Framework autosize

UI Components for JSF
Post Reply
dblanco
Posts: 35
Joined: 02 Oct 2015, 09:13

16 Oct 2017, 13:32

hi, it is possible to auto adjust the height and width to fit content of a Dialog Framework?

thanks.
PrimeFaces 12.0 | JSF 2.3 | Barcelona Theme 5.0.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

17 Oct 2017, 10:25

The default is 'auto' for height and width. So what do these defaults do for you?

dblanco
Posts: 35
Joined: 02 Oct 2015, 09:13

17 Oct 2017, 11:41

Ok, I've checked that the default 'auto' value for height is doing well, but when I put 'auto' as value of property width it doesn't change and it is always 640, because this is the default value of property 'content-width'. I have changed manually value of content-width property to 'auto' too but it does not. In fact, inspecting the page at runtime it puts the iframe width value as "auto" literally, instead of translating it to the corresponding value.
PrimeFaces 12.0 | JSF 2.3 | Barcelona Theme 5.0.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

17 Oct 2017, 15:39

ok... maybe try if 6.2-SNAPSHOT from trunk works, otherwise post an inssue in github

dblanco
Posts: 35
Joined: 02 Oct 2015, 09:13

18 Oct 2017, 16:46

In version 6.2-SNAPSHOT is not fixed.

I posted an issue: https://github.com/primefaces/primefaces/issues/2831

Thanks.
PrimeFaces 12.0 | JSF 2.3 | Barcelona Theme 5.0.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

18 Oct 2017, 19:47

Thank you. Wished that everyone was so cooperative. And thanks for the PR too.. Great!!!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests