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

Reply via email to