I'm able to reproduce it this way:
I created a skeleton app with name "asd".
I copied the code of asd.Application Ricardo provided into the Application.js
file and the code of asd.XTP into a new XTP.js file.
After generating the source the SelectBox-List looks like Ricardo said (FF
3.6.6).
I'm sure that's because of that both files extend qx.application.Standalone and
both files have a main function.
Following changes let the app look like it should:
/**
* This is the main application class of your custom application "asd"
*/
qx.Class.define("asd.Application",
{
extend : qx.application.Standalone,
members :
{
/**
* This method contains the initial application code and gets called
* during startup of the application
*
* @lint ignoreDeprecated(alert)
*/
main : function()
{
// Call super class
this.base(arguments);
// Enable logging in debug variant
if (qx.core.Variant.isSet("qx.debug", "on"))
{
// support native logging capabilities, e.g. Firebug for Firefox
qx.log.appender.Native;
// support additional cross-browser console. Press F7 to toggle
visibility
qx.log.appender.Console;
}
qx.locale.Manager.getInstance().setLocale("en");
var xtp = new asd.XTP();
//xtp.main();
this.getRoot().add(xtp.main(), {left: "50%", top: "50%"});
}
}
});
/**
* This is the class XTP of your custom application "asd"
*/
qx.Class.define("asd.XTP",
{
extend : qx.core.Object,
members :
{
__container : null,
main: function()
{
this.debug("main of asd.XTP called");
//this.base(arguments);
/* Container layout */
var layout = new qx.ui.layout.Grid(9, 5);
layout.setColumnAlign(0, "right", "top");
layout.setColumnAlign(2, "right", "top");
/* Container widget */
this.__container = new qx.ui.groupbox.GroupBox().set({
contentPadding: [16, 16, 16, 16]
});
this.__container.setLayout(layout);
this.__container.addListener("resize", function(e)
{
var bounds = this.__container.getBounds();
this.__container.set({
marginTop: Math.round(-bounds.height / 2),
marginLeft : Math.round(-bounds.width / 2)
});
}, this);
//this.getRoot().add(this.__container, {left: "50%", top: "50%"});
/* Text fields */
var field0 = new qx.ui.form.SelectBox();
var field1 = new qx.ui.form.TextField();
var field2 = new qx.ui.form.PasswordField();
var field3 = new qx.ui.form.SelectBox();
for (var i=0; i<3; i++)
{
field0.add(new qx.ui.form.ListItem("SelectBox1 [" + (i+1) + "]"));
}
for (var i=0; i<30; i++)
{
field3.add(new qx.ui.form.ListItem("SelectBox2 [" + (i+1) + "]"));
}
var container1 = new qx.ui.container.Composite(new qx.ui.layout.VBox(2));
var container2 = new qx.ui.container.Composite(new qx.ui.layout.VBox(2));
container1.add(field0);
container2.add(field3);
this.__container.add(container1.set({
allowShrinkX: false,
paddingTop: 3
}), {row : 0, column : 1});
field1.focus();
this.__container.add(field1.set({
allowShrinkX: false,
paddingTop: 3
}), {row : 1, column : 1});
this.__container.add(field2.set({
allowShrinkX: false,
paddingTop: 3
}), {row : 2, column : 1});
this.__container.add(container2.set({
allowShrinkX: false,
paddingTop: 3
}), {row : 3, column : 1});
return this.__container;
}
},
destruct : function()
{
this._disposeObjects("__container");
}
});
Regards,
Andreas
-----Ursprüngliche Nachricht-----
Von: MartinWittemann [mailto:[email protected]]
Gesendet: Montag, 19. Juli 2010 08:38
An: [email protected]
Betreff: Re: [qooxdoo-devel] widget SelectBox
Hey,
thanks for giving it a try Andreas. It seems that something in the setup is
not working. Ricardo, could you perhaps supply the whole application you
used for testing including all files like the config.json? Just zip it and
attach it so i can have exactly the same setup like you have.
Regards,
Martin
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/widget-SelectBox-tp5296802p5310878.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel