0

ZK Demo, Macro/Include and Rendering

asked 2008-12-02 15:28:22 +0800

lamh gravatar image lamh
84 3

Hi there,

I am using the zkdemo as my application starting point. I move the tree out to its own menu.zul file. Then, I use <?component>:

<?component name="menu" macroURI="menu.zul"?>
....
<west title="Menu Demo" size="320px" splittable="true"
			minsize="150" maxsize="500" collapsible="true">
    <menu/>
</west>

or I use <include>

...
<west....>
    <include src="menu.zul"/>
....

In either case, the vertical scroll bar indicates there's nothing to scroll. There are clearly more items that require scrolling down to see. It seems like the scroll bar is rendered before the macro or include is composed.

Can someone shed some light on this?

My intention is to create a main window with different areas for other zul files to plug into. The menu tree will be dynamically generated inside java.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-12-04 02:22:51 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

Hi there,

please invoke setAutoscroll(true);

/robbie

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-12-02 15:28:22 +0800

Seen: 199 times

Last updated: Dec 04 '08

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