[Mono-bugs] [Bug 540730] SomeTextView.SizeThatFits always returns 0, 0.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 21 22:01:58 EDT 2009


User miguel at novell.com added comment

Miguel de Icaza <miguel at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |NEEDINFO
                 CC|                            |miguel at novell.com
      Info Provider|                            |Tom1234 at gmail.com

--- Comment #1 from Miguel de Icaza <miguel at novell.com>  2009-09-21 20:01:49 MDT ---
I tried replicating the problem with both Objective-C and MonoTouch and was
unable to reproduce a problem similar to this.

The return value from UITextView.SizeThatFits (SizeF) is that the return value
appears to always be the size defined in the XIB file.   Perhaps you created an
empty UITextView (or one with no height on it)?

Regardless of the amount of text in the UITextView, I would always get the
actual size that was hardcoded with the UI.

While doing that, I discovered that there are certain APIs to measure strings
that we have not implemented (UIView.StringSize) and will be available in the
next MonoTouch drop.

In the meantime, can you provide me with the sample, i am not sure that this is
a MonoTouch bug, it seems more like this is not what this API is supposed to

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list