Hi Stefan,

this is an Appearance problem. qx.ui.toolbar.Part usually has the 
appearance Id "toolbar/part", but your child control uses the Id 
"fit-pane". So you need to assign the correct appearance to it by adding 
the following definition to your application's Appearance theme:

"toolbar/fit-pane" : "toolbar/part"

This will fix the controls being rendered over the Part.

As for the TextField's vertical alignment, I think it's acceptable to 
set this manually. After all, it's no toolbar.TextField.


Regards,
Daniel

Stefan Andersson schrieb:
> Here is the code:
> 
> for push buttons not working. The first push button renders over the 
> vertical lines of the Part class.
> 
> // overridden
> _createChildControlImpl : function(id)
> {
>       var control;
>       var radioGroup;
>       var widget;
>       var tooltip;
> 
>       switch(id)
>       {
>        case "fit-pane":
>           control = new qx.ui.toolbar.Part();
>           radioGroup = new qx.ui.form.RadioGroup();
> 
>           widget = this.getChildControl("thumb-view-button");
>           control.add(widget);
>           radioGroup.add(widget);
> 
>           widget = this.getChildControl("fit-width-button");
>           control.add(widget);
>           radioGroup.add(widget);
> 
>           widget = this.getChildControl("fit-page-button");
>           control.add(widget);
>           radioGroup.add(widget);
>           break;
> 
>        case "thumb-view-button":
>           control = new qx.ui.toolbar.RadioButton(null, 
> "icon/16/actions/help-about.png");
>           control.addListener("execute", this._onThumbViewButtonClick, 
> this);
>           break;
> ...
> 
>         case "current-page-field":
>           control = new qx.ui.form.TextField();
>           control.setWidth(30);
>           control.setAlignY("middle");
>           break;
>     }
> 
>     return control || this.base(arguments, id);
> }
> 
> the same for textfields.
> 
> Notice that I have to add this line for text fields:
> 
>          control.setAlignY("middle");
> 
> so the aligning would be ok, else awkward! Default for a toolbar would 
> better be middle.
> 
> Tried padding and margin to compensate, but it does not work!
> 
> It seems to be a bug to me....
> 
> Stefan
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to