[Bf-committers] Panel auto resize bug

Ton Roosendaal bf-committers@blender.org
Sun, 19 Oct 2003 10:07:49 +0200


I've had a lot of troubles finding a good heuristic for auto align.  
First of all I wanted the headers to align in horizontal mode... so  
aligning them at the top was the logical choice. Also when you switch  
to vertical or back, the first panel stays where it is.

Adding more constraints will increase the size of the panel. I see  
there's an error in the align code that doesn't keep the headers  
aligned... I will fix that.

Of course; this type of flexible size Panel is best used in vertical  
align mode!

In the version in CVS I see one Constraint drawing error, which  
disappears after redraw. I fix that.

The align code is quite simple, and you can try some variants  
yourself... :)


On Sunday, Oct 19, 2003, at 05:35 Europe/Amsterdam, Martin Poirier  

> Hi,
> I've noticed that, when set to Horizontal aligned, the
> panels grow and shrink from the top instead of from
> the bottom. This is mainly visible in the constraint
> panel when adding two or three constraints and playing
> with the minimize buttons where it cause some
> artefacts: the rectangles and emboss are not drawn
> where they should. However, this doesn't seem to
> affect buttons and gets cleared on refresh, so maybe
> it's a bug somewhere else...
> Two things. First, I think the panels should always
> grow and shrink from the bottom. Second, if this
> highlights a bug in how the panels gets drawn, then it
> should be solved too.
> Martin
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers
Ton Roosendaal  Blender Foundation ton@blender.org