Hello Everyone,
I have come across what seems to be a bug in the frame, or I'm doing
something weird.
I'm using child controls to make a combination of labels and different input
types, I know the frame has this implementation, but I want to do my own.
What happens is that if I try to create the DateField as a control, it
displays itself in a weird way.
I have made an example in the playground just so you can see what I'm
talking about and what I'm doing:
http://demo.qooxdoo.org/1.3/playground/#%7B%22code%22%3A%20%22%250Aqx.Class.define(%2522demobrowser.Main%2522%252C%250A%257B%250A%2520%2520extend%2520%253A%2520qx.application.Standalone%252C%250A%250A%2520%2520members%2520%253A%250A%2520%2520%257B%250A%250A%2520%2520%2520%2520main%253A%2520function()%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520this.base(arguments)%253B%250A%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520var%2520doc%2520%253D%2520this.getRoot()%253B%250A%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520doc.add(new%2520qx.ui.form.DateField())%253B%2520%252F%252FWorks%2520fine%250A%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520doc.add(new%2520demobrowser.TestWidget()%252C%2520%257Btop%253A%252040%257D)%253B%250A%2520%2520%2520%2520%257D%250A%2520%2520%257D%250A%257D)%253B%250A%250Aqx.Class.define('demobrowser.TestWidget'%252C%2520%257B%250A%2520%2520%2520%2520extend%253A%2520qx.ui.container.Composite%252C%250A%2520%2520%2520%2520%250A%2520%2520%2520%2520construct%253A%2520function()%2520%257B%250A%2520%2520%2520%2520%2520%2520this.base(arguments)%253B%250A%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520this.setLayout(new%2520qx.ui.layout.HBox(20))%253B%250A%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520this.add(new%2520qx.ui.form.DateField())%253B%2520%252F%252FWorks%2520fine%250A%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520this.add(this.getChildControl('datefield'))%253B%2520%252F%252FDoesn't%2520work%250A%2520%2520%2520%2520%257D%252C%250A%2520%2520%2520%2520%250A%2520%2520%2520%2520members%253A%2520%257B%250A%2520%2520%2520%2520%2520%2520_createChildControlImpl%253A%2520function(id)%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520var%2520control%253B%250A%2520%2520%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520%2520%2520switch(id)%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520case%2520'datefield'%253A%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520control%2520%253D%2520new%2520qx.ui.form.DateField()%253B%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520break%253B%250A%2520%2520%2520%2520%2520%2520%2520%2520%257D%250A%2520%2520%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520%2520%2520return%2520control%2520%257C%257C%2520this.base(arguments%252C%2520id)%253B%250A%2520%2520%2520%2520%2520%2520%257D%250A%2520%2520%2520%2520%257D%250A%257D)%253B%250A%250A%22%7D
Example
The same thing happens when I try passing a SelectBox or ComboBox, but
TextFields and TextAreas display well.
Thank you very much for your help everyone!
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/getChildControl-renders-buggy-DateFields-tp6160188p6160188.html
Sent from the qooxdoo mailing list archive at Nabble.com.------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel