> Ok,
> 
> I will explain it to you :D
> 
> I created my own buttonBar-class (myapp.bar.Bar - it's a horizontalBoxLayout).
> There I can define buttons (myapp.bar.Button), Title (myapp.bar.Title) , 
> icons (myapp.bar.Icon) which should be centered in my buttonBar.
> 
> Usually my buttons have a fix size (100px or something like this) but if I 
> create buttons with a flex size (f.e. 30%) this would
> cause the problems ("walking widgets") I wrote before.
> 
> I added 2 screenshot of my "myapp.page"-Widget which contains a 
> TitleBar(myapp.bar.Bar + myapp.bar.Title + myapp.bar.Icon) 
> and a buttonbar (myapp.bar.Bar + 2x myapp.bar.Button).
> one with the flex size and one with a fix size.
> 
> 
> Tobias 
> 
> [...]

Ahhhh! Now I see :-D "...one picture says more than thousand words..."

But unfortunately I can't give you a quick solution :(
The problem seems to be the
    horizontalChildrenAlign : "center"
part of the h-box.
Without this setting, there's no "walking", but that's not what you intended to
design*...
The inner widget gets a offset on the "left" property on resizing, only when
the "horizontalChildrenAlign" property is set to "center".

I'm not sure if this is an error of the h-box. It is "a kind of" explainable,
'cause the widget is trying to center itself by adding an offset to its "left"
property.
Maybe this _is_ an issue.

I will take my lunch break now, maybe afterwards I'll have any idea for a
work-around ;)

/Kuddel

*) ...if I get you right now ;)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to