0

Listbox manual column size change make missmatches between header column size and item column size

asked 2014-03-23 20:03:39 +0800

neonomaly gravatar image neonomaly
3 1

updated 2014-03-24 07:36:21 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

Hi guys. I'm using zkoss 7 and see that:

http://s30.postimg.org/hx2pz6hls/image.jpg

Here you can see mismatches between listheader column sizes and listitem columnsizes. After page loading its all ok, but manual changing of column size and setting new model for listbox leads to this situation.

I define listbox like this:

    table = new Listbox();
    table.setMultiple(page.getMultiSelection());
    table.setVflex("1");
    table.setSpan(true);
    table.setCheckmark(page.getMultiSelection());
    table.setMultiple(page.getMultiSelection());


    Listhead listhead = new Listhead();
    listhead.setSizable(true);
    table.appendChild(listhead);

For every listheader:

    listheader.setHflex(<someflex>);

Can someone recomend something to avoid this bug?

Thanks!

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-09-21 12:43:59 +0800

Darksu gravatar image Darksu
1991 1 4

Hello neonomaly,

You have to re-render the model, for it to work properly after you set the new model.

Best Regards,

Darksu

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
1 follower

RSS

Stats

Asked: 2014-03-23 20:03:39 +0800

Seen: 11 times

Last updated: Sep 21 '14

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