-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I have a window where I put a toolbar on top of it as the following code:
<borderlayout width="100%" height="100%">
<north>
<toolbar >
<toolbarbutton id="btnSalvar" label="Salvar" forward="onSalvar"/>
<space bar="true" height="100%"/>
<toolbarbutton id="btnCancelar" label="Cancelar" forward="onCancelar"/>
</toolbar>
</north>
<center> ... </center>
</borderlayout>
I noticed that the "space" element is not drawing the bar with the correct height, I mean, it's not covering all the Toolbar's height as you can see in this screenshot: http://prntscr.com/2uhjwj
As a quick fix (with a fixed height) you can apply the styles in this example.
The same can be achieved by applying a CSS style for the whole page in this example
If you need a flexible height this will apply the height to the parent elements so it can be used inside the spacer.
I hope these examples are helpful.
Asked: 2014-02-21 14:30:01 +0800
Seen: 52 times
Last updated: Jun 04 '14
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status