Game Development Community

GuiTextEditSliderCtrl relative sizing bug

by Ronald J Nelson · in Torque Game Engine Advanced · 05/30/2008 (5:27 pm) · 10 replies

I have tested this in 1.7 as well as 1.03 and it is there in both. If you have the sizes set to relative, the verticle will resize itself to fit the text as soon as you press one of the arrows.

#1
06/01/2008 (2:09 am)
Has anyone else seen this bug?
#2
06/01/2008 (3:13 pm)
Here is a quick video I made that shows the bug.

i72.photobucket.com/albums/i192/DTDA/th_sliderbug.jpg
#3
06/04/2008 (11:28 pm)
Does anyone know why this is happening, has even seen it, or is it just me and I have done something wrong on my end?
#4
06/06/2008 (10:11 pm)
Well I have done lots of testing and as far as I can tell the issue is in onRender.

The GuiTextEditSliderCtrl has no real method of adjusting its offsets adjusted through parentResized as it's parent, GuiTextEditCtrl does and when you click on the arrows it is reverting.

You see if you click in the textedit portion it does not resize thus meaning that GuiTextEditCtrl's parentResized is working properly.

So my theory is that for some reason the GuiTextEditSliderCtrl is being set to it's GuiTextEditCtrl size initially but when you click on the slider portion it fails to maintain the starting size and reverts to the non-relative settings.

Keep in mind its just a theory, but it seems likely. I could really use a little help on this one.
#5
06/21/2008 (5:29 pm)
Well could someone at least tell me if they have also seen this?
#6
07/02/2008 (1:44 pm)
Did a quick check and no, couldn't reproduce the problem by just setting both sizing policies to relative. Is there other things you modify to get this behavior? Are you using a specific profile?
#7
07/02/2008 (2:12 pm)
Thanks Rene. If you wouldn't mind me asking, which version of TGEA are you using?
#8
07/02/2008 (3:19 pm)
Tested this on 1.7.1.
#9
07/04/2008 (12:36 pm)
Thanks Rene. It was a profile setting after all. Horizontal AutoSize will do this.
#10
07/07/2008 (2:44 pm)
Ok, great. Glad it works.