0

Problen with width atribute

asked 2006-05-09 23:28:22 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3721525

By: krynn_cl

with tis code:
<hbox width="100%">
<window id="principal" title="Espacio de InformaciA3n primordial"
closable="false" border="normal" width="80%" mode="embedded">
alooooooooooooo
</window>

<vbox >
<window id="identificacion" title="identificacion" closable="false"
border="normal" width="20%" mode="embedded">
siiiiiiiiiiiii??
</window>
<window id="derecha_abajo" title="derechaAbajo" closable="false"
border="normal" width="20%" mode="embedded">
diiiiiiiigaaaaaaa?
</window>
</vbox>

</hbox>


The idea is its look
a big window of he 80% of the space and 2 window of the 20% but always it look Bad, or the windows in the box it's deformed, and not work like a table.
how i can do this look good??

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-05-10 02:09:21 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3721652

By: henrichen

For box layout, you have to image that there is an invisible box surrounds each component. i.e. There is a box that surrounds the principle window and another box surrounds the vbox that holds the other two small windows.

When you put width="80%" in the principle window, you are telling that, "The window's width is 80% of the box." Thus the look.

The width of the invisible box is determined by its enclosing component. Currently, you have no way to specify the width of that invisible box.

All you can do is adjusting the spacing between the invisible boxes.

A feasible way is to set enclosing components width using fixed pixels.

/henri

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: 2006-05-09 23:28:22 +0800

Seen: 235 times

Last updated: May 10 '06

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