Ok, I think I have it figured out. In the constructor of my
DialogViewController inheritor I was doing something like...
Root = new RootElement("Root Element");
Root.UnevenRows = true;
The trouble with this is that the DialogViewController never sees the
UnevenRows set. I changed it to...
RootElement re = new RootElement(Localized.Question){m_QuestionSection,
m_MessageSection};
re.UnevenRows = true;
Root = re;
And now it all works. The IElementSizing.GetHeight call fires as expected.
This is something that appears to be a general problem with
Monotouch.Dialog. So make sure your elements are fully initialised before
assigning them to their parents, unless you are sure that the fields will
update properly, for example if you change the value and call ReloadData().
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Monotouch-Dialog-MessageElement-not-full-height-the-first-time-it-is-displayed-tp4597150p4600080.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch