Why is width an int ?

UI Components for JSF
Post Reply
craig
Posts: 21
Joined: 04 Oct 2010, 16:09

19 May 2011, 17:43

I'm having problem with the dialog box

Could the width attribute be a string so that I can use "auto", "50%" etc rather than having to specify the width in pixels?

Thoughts ?

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

19 May 2011, 18:50

Yes, that is a strange thing. The other strange thing AFAIK - it's applied to inner div and not outer. Try CSS. I mostly use CSS rather than width / height attributes.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

craig
Posts: 21
Joined: 04 Oct 2010, 16:09

20 May 2011, 11:20

I agree, css is the best way forward, but I can't see how I can accomplish this.

If I add an outer div with a class that has width auto this is overridden as the component (im using a dialog) adds a default width (in pixels) if this is not specified in the markup

Has anyone any ideas how I could do this?

Thanks

Craig

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 27 guests