Hey Felix,

>From memory MT.D custom element sizing can be done two ways - implementing
IElementSizing on the Element (which I am assuming what is happening here,
as MessageElement is built-in) OR implementing CreateSizingSource on the
DialogViewController subclass and returning something that responds to
GetHeightForRow.

I can't remember the exact details OTTOMH but I vaguely recall having an
issue with IElementSizing on a custom element I once wrote (similar effect,
rows show as default height); which I was able to work around by writing a
custom DialogViewController.SizingSource instead. If you don't have any
other success, you might try implementing that too; in case it helps (as a
last resort :) ... this was a little while ago for me.


Also - you mention the simulator is iOS 5.0 -- is the iPad also 5.0 or 5.1?
I have seen some little inconsistencies introduced in 5.1 so it'd be
interesting to know if the OS versions are exactly the same.

-cd


On Mon, Apr 30, 2012 at 9:45 AM, Felix Collins <[email protected]> wrote:

> I have a weird problem with a list of message elements running on the
> simulator.  The first time that a DialogViewController with message
> elements
> is shown they appear not to size to the correct height (see pic below). If
> I
> navigate away and back to the view or to a different view with message
> elements then they show up correctly. Running on iPad iOS 5 it seems to
> work
> ok first time so maybe it is just a  simulator issue. Can anyone suggest a
> fix or workaround?
>
> MonoDevelop 2.8.8.4
> Apple Developer Tools:
>         Xcode 4.2.1 (834)
>         Build 4D502
> Monotouch: 5.2.11
> Running on Simulator 5.0 targeting iOS 3.0
>
> http://monotouch.2284126.n4.nabble.com/file/n4597150/narrowmessagepng.png
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Monotouch-Dialog-MessageElement-not-full-height-the-first-time-it-is-displayed-tp4597150p4597150.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to