Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setHeightLocal() and setSizeLocal() for MTTextArea #46

Open
GoogleCodeExporter opened this issue Aug 16, 2015 · 0 comments
Open

setHeightLocal() and setSizeLocal() for MTTextArea #46

GoogleCodeExporter opened this issue Aug 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. create a MTTextArea without any X or Y coordinates just the mtapp and font 
2. then call the methods either setHeightLocal(float) or setSizeLocal(float, 
float) on the MTTextArea

What is the expected output? What do you see instead?

the height of the MTTextArea is 10 pixels higher than what would be expected if 
you had of passed in a width and height parameters to the constructor of the 
MTTextArea.

What version of the product are you using? On what operating system?

Version 0.98 on MacOSX 10.5.8 and Windows 7, both 64 bit.

Please provide any additional information below.

I made a forum post about it and discussed with Therion on #mt4j freenode.

http://nuigroup.com/forums/viewthread/14164/

The workaround to this problem is to modify two of the new vertices when 
this.setVertices is called in both of these methods in the MODE_EXPAND: case.

Instead of having:

height + (2 * innerPaddingTop)

just change to:

height

However, there are no guarantees that this is fully tested and that it won’t 
affect other parts of the code. I am yet to test in more detail. 

Kind regards,
Craig
http://homepages.ecs.vuw.ac.nz/~craig

Original issue reported on code.google.com by craig.anslow@gmail.com on 21 Jun 2012 at 1:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant