Koen:
Is there a "best practices" document for widget layout that explains the 
current rules?

Better yet, is there example code that shows how to layout widgets?

On Jun 7, 2013, at 4:25 AM, Koen Deforche <k...@emweb.be> wrote:

> Hey Antonio,
> 
>>> There was indeed a bug which I fixed just now in my copy (and needs
>>> more testing before pushing it out).
>> 
>> 
>> Ok, I'll wait for it.
> 
> I've pushed it now.
> 
>> I might be wrong, but since we have a lot of old-styled code for grid
>> layout managers, I thought I would have had to keep in mind this detail
>> from your docs above the others:
>> 
>> "When the container of a layout manager has a maximum size set using
>> WWidget::setMaximumSize(), then the size of the container will be based
>> on the preferred size of the contents, up to this maximum size, instead
>> of the default behaviour of constraining the size of the children based
>> on the size of the container."
>> 
>> Without specifying that directive, every wt app we have developed so far
>> shows very big elements trying to fill all the available page space.
> 
> The available space must be used anyway (perhaps with whitespace), right?
> If you want to fill certain parts with 'nothing', then you should use
> stretch to do that: either by putting a non-zero stretch on one of the
> rows/columns, or by adding stretch separately. You should not be using
> setMaximumSize() since that really switches the behaviour of the
> layout manager dramatically: instead of constraining the children to
> fit in the parent, it adjusts the parent to whatever the children feel
> like needing.
> 
> Regards,
> koen
> 
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to