You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by rosecorp <ro...@gmail.com> on 2012/11/29 01:23:35 UTC

tapestry-jquery accordion height problem

Hi Guys, 

I have a problem with height of first tab using tapestry-jquery accordion
component. It always gets size of TitleB tab but when I click on TabB and
back on TabA height of TabA is refreshed and height is rendered correctly.
Below I've attached sample code how do I do it:

java:

@SetupRender
public void setup() {
      jsonObject = new JsonObject().put("clearStyle",
"true").put("autoHeight","false")
}

tml:

     <t:jquery.accordion t:id="newAdAccordion" t:panels="TitleA, TitleB" 
			t:activeElementId="0" t:params="jsonObject">		
			<p:TitleA>
aa <br />
aa <br />
aa <br />
                        </p:TitleA>
                        <p:TitleB>
bb <br />
bb <br />
bb <br />
bb <br />
bb <br />
bb <br />
                        </p:TitleB>

Any ideas? :)

Thanks in advance...




--
View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-jquery-accordion-height-problem-tp5718378.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: tapestry-jquery accordion height problem

Posted by rosecorp <ro...@gmail.com>.
Hi Emmanuel, Your suggestion is correct, I've updated jquery accordia ui to
latest one and that made a trick, Thanks!



--
View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-jquery-accordion-height-problem-tp5718378p5718404.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: tapestry-jquery accordion height problem

Posted by Emmanuel DEMEY <de...@gmail.com>.
Hi,

I think it a jQuery UI problem. can you test the version of the jQuery UI
you use. 1.8.* or 1.9.*. The parameters have changed between these 2
versions.

Can you also add a breackpoint on the client-side, in order to check if the
JSON is correct.

Thanks.

Manu


2012/11/29 rosecorp <ro...@gmail.com>

> Hi Guys,
>
> I have a problem with height of first tab using tapestry-jquery accordion
> component. It always gets size of TitleB tab but when I click on TabB and
> back on TabA height of TabA is refreshed and height is rendered correctly.
> Below I've attached sample code how do I do it:
>
> java:
>
> @SetupRender
> public void setup() {
>       jsonObject = new JsonObject().put("clearStyle",
> "true").put("autoHeight","false")
> }
>
> tml:
>
>      <t:jquery.accordion t:id="newAdAccordion" t:panels="TitleA, TitleB"
>                         t:activeElementId="0" t:params="jsonObject">
>                         <p:TitleA>
> aa <br />
> aa <br />
> aa <br />
>                         </p:TitleA>
>                         <p:TitleB>
> bb <br />
> bb <br />
> bb <br />
> bb <br />
> bb <br />
> bb <br />
>                         </p:TitleB>
>
> Any ideas? :)
>
> Thanks in advance...
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/tapestry-jquery-accordion-height-problem-tp5718378.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey