0

Size problems with borderlayout

asked 2014-02-20 11:02:50 +0800

salbader gravatar image salbader
15 5

Hi there

i have a problem with borderlayout. I am not able to handle content changes in center area in a proper way.

See my comment for a code sample

You have to click on SubMenu 1 and after that on Menu 3. The content is not fully shown. Nearly the half table is missing. I could call invalidate() on the container divs and after that resize() on borderlayout after every MenuClick. But i can't handle user interactions like sorting a table (of course i could but it will cost a lot of time ...) what can cause a larger table (in height). The result is the same, missing content.

Greetings

delete flag offensive retag edit

Comments

http://zkfiddle.org/sample/krllcj/38-Size-Problem-with-Borderlayout

salbader ( 2014-02-20 11:02:57 +0800 )edit

2 Answers

Sort by ┬╗ oldest newest most voted
0

answered 2014-02-21 11:06:13 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

There are several issues in the fiddle above:

1st. Do not use vflex attribute and height attribute at the same time, choose one of them.

2nd. All parents of the component has vflex="Integer" should have vflex="Integer".

3rd. All child of the component has vflex="min" should not have vflex="Integer".

You can specify

style="overflow: auto;"

to divCenter then vertical scrollbar appears and can see whole listbox.

please refer to updated fiddle http://zkfiddle.org/sample/krllcj/45-Size-Problem-with-Borderlayout

link publish delete flag offensive edit

Comments

Hi benbai, thank you for your help. Unfortunately the scrollbar is not an option for me. Like is said, its no problem with vlayout and hlayout.

salbader ( 2014-02-25 16:29:48 +0800 )edit

It is correct since borderlayout has different style and UI life cycle. Do you mean you want the borderlayout fit the size of it's content? By the way, what is your ZK version, browser and browser version?

benbai ( 2014-02-26 11:35:31 +0800 )edit
0

answered 2014-02-20 16:56:37 +0800

salbader gravatar image salbader
15 5

Actually i wasn't able to get it done. I refused using borderlayout and used vlayout and hlayout instead to create my own "borderlayout". Now the size will be calculated in the right way.

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-02-20 11:02:50 +0800

Seen: 18 times

Last updated: Feb 21 '14

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