0

hflex not working

asked 2013-03-12 20:08:00 +0800

iank gravatar image iank
42 4

Hi there,

I have a zul file that brings in windows to give a 3 column interface with a bar at the top and bottom:

<window title="topbar" vflex="min">
    <include src="heading.zul" />
</window>

<window title="contentAs3Columns" vflex="1">
   <borderlayout>
      <center hflex="1" autoscroll="true">
          <include src="centerContent.zul" />
      </center>
      <west hflex="min" border="none" collapsible="true" splittable="true" maxsize="300">
          <include src="leftBar.zul" />
      </west>
      <east hflex="min" border="none" collapsible="true" splittable="true" maxsize="300">
          <include src="rightBar.zul" />
      </east>
   </borderlayout>
</window>

<window title="bottomBar" vflex="min">
    <include src="footer.zul" />
</window>

I need both the left and right bars to be as small as possible, just big enough to hold their content.

When I use this code, the leftBar takes up the entire content area, letting you see the header and footer, but not the centerContent or rightBar.

Any ideas what's going wrong? Thanks! =)

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
3

answered 2013-03-13 01:43:15 +0800

psingh gravatar image psingh flag of India
963 8

You can use stylesheet for each zul file. Like in centerContent.zul,we have <window> tag.

<window contentStyle="overflow:auto">
</window>

or

 <window contentStyle="overflow:scroll">
    </window>

You can get scroll in you page and same you can do for other pages.

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: 2013-03-12 20:08:00 +0800

Seen: 63 times

Last updated: Mar 13 '13

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