0

after component rendering event

asked 2017-08-11 16:20:00 +0800

sbasly gravatar image sbasly
3 1

updated 2017-08-11 16:28:54 +0800

is there anyway to have an event fired just after the creation of the component ? so I can get some information like the width ?

If I don't specify the height or width getHeight() and getWidth() always return null. is it possible to get the dimension of the component after being rendered ?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-14 01:43:19 +0800

cor3000 gravatar image cor3000
6280 2 7

the dimensions (if undefined) of a component are only available after the component was sized at client side.

You can listen to the onAfterSize event which will fire to the server once the client widget calculated its size:

http://zkfiddle.org/sample/17rmrgf/1-onAfterSize-example

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: 2017-08-11 16:20:00 +0800

Seen: 32 times

Last updated: Aug 14 '17

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