Size of the multiline TextBox [closed]

asked 2020-05-29 18:31:44 +0800

v552 gravatar image v552

Is it possible to get height/width on the server side (Java code) after resizing TextBox by dragging the stretch symbol on the right side on bottom of the textbox?

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by cor3000
close date 2020-06-04 11:35:16

2 Answers

Sort by ยป oldest newest most voted

answered 2020-06-02 17:27:50 +0800

cor3000 gravatar image cor3000
5250 2 7
ZK Team

yes it is, at least in modern browsers (non IE) there's a dedicated web API (ResizeObserver) to observe changes of resizable elements such as textareas.

In ZK it can be initialized/cleaned up using the client side API (during onBind/onUnbind), and custom events can be fired to the server side (widget.fire())


The example below shows this in a simple case. To reduce the number of events fired it uses the duplicatIgnore option.


link publish delete flag offensive edit

answered 2020-06-03 12:49:46 +0800

v552 gravatar image v552

Great thanks! I tried ResizeObserver and it really works for me!

link publish delete flag offensive edit


great, thanks for getting back

cor3000 ( 2020-06-04 11:34:55 +0800 )edit

Question tools

1 follower



Asked: 2020-05-29 18:31:44 +0800

Seen: 11 times

Last updated: Jun 03

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