0

vflex and textbox

asked 2021-01-05 15:07:02 +0800

assonaZkDev004 gravatar image assonaZkDev004
101 2

Hi there :-)

I have a textbox within a vlayout, it has 5 rows (textarea, multiline), so it is forbidden to set vflex ("Not allowed to set vflex and rows at the same time").

How can I make the textbox grow and shrink vertical flexible with resizing its parent (or the window)?

(I am using ZK 9.5.0)

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-01-05 15:14:45 +0800

cor3000 gravatar image cor3000
5673 2 7
ZK Team

updated 2021-01-05 15:28:43 +0800

simple answer is: don't set the rows attribute an just use vflex="1"

<zk>
  <vlayout height="100%">
    before
    <!-- textbox takes remaining space between before an after-->
    <textbox vflex="1" multiline="true"/> 
    after
  </vlayout>
</zk>

is there a reason why you need to set both?

link publish delete flag offensive edit

Comments

Thank you for your fast response! We fill it by Java in a row-by-row way, so it has to be a multiline component, BUT I can omit the rows. Thank you very much, sometimes you only have to take a step back to see the solution ;-)

assonaZkDev004 ( 2021-01-05 15:47:02 +0800 )edit

great it was only this... thanks for getting back !

cor3000 ( 2021-01-05 18:07:43 +0800 )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
1 follower

RSS

Stats

Asked: 2021-01-05 15:07:02 +0800

Seen: 9 times

Last updated: Jan 05

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