Stanislav Ievlev schrieb:
On Tue, Feb 07, 2006 at 08:38:51PM +0100, Sebastian Werner wrote:
Stanislav Ievlev schrieb:
Greetings!

Layout engine doesn't take spacing values into account during widget size
calculation when widget geometry is defined using percents.
The spacing is outside the boundaries of a widget. If you define two times 50% this is a sum of 100% plus the defined spacing of 30 pixel.
But other layout systems can solve this little problem.
You only need to calculate percents not using a whole height,
but using (height - items* spacing - 2*margin)

this is not a problem of solve or not to solve. This is just a question of what you want to implement in which way. We have choosen our current way for this version. But we have discussed this today and could also imagine to implement it in your way. We will see with the next rework of the layout system.


I'm prefer to made such calculations with computer not in my mind ;)
In my opinion the layout handling is completely correct in this case.

You can try to replace "50%" with "1*" in both cases.
I need more complex layouts: 30% + 30% + 1* + spacing + margin

If you have a 1* it will fill the free space. So you should not have any problem with this using the current renderer version.

Sebastian


--
With best regards
Stanislav Ievlev.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to