0

setHeight is not being sent to client

asked 2013-02-02 04:51:22 +0800

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

updated 2013-02-02 04:51:22 +0800

TheAce gravatar image TheAce
69

Hello,

when using component.setHeight(Xxxx) on a onClientUserInfo event the component does not get "Refresehed" right away It takes another onClientUserInfo (browser reize event) in order to make that one get to a bigger size (THE PREVIOUS OUNE)

I've tried to add the following : BindUtils.postNotifyChange(null, null, this, "*");

It didnt help.

Anyone have any idea how to make setHeight on a onClientInfo to occur right away ?

delete flag offensive retag edit

Comments

Actually the problem was due to when I was going a "setHeight" and setWidth on a "west" element. It was kind of throwing an exception but not showing in any logs

TheAce ( 2013-02-02 13:37:43 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-05 10:39:48 +0800

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

updated 2013-02-05 10:39:48 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi TheAce,

You can refer to the following sample:

<zk>
<zscript><![CDATA[
    int i = 10;
]]></zscript>
<window id="win" title="win" border="normal" >
    <attribute name="onClientInfo"><![CDATA[
        win.setHeight((5 * i++) + "px");
    ]]></attribute>
</window>

</zk>

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-02-02 04:51:22 +0800

Seen: 16 times

Last updated: Feb 05 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More