All elements are always sized the same and IElementSizing is ignored. Even MessageElement that comes as a part of MT.D isn't sized properly.
I know people have done custom sized elements:
If you've got a problem, then you're going to need to supply way more detail than 1 line - a full reproduction test case would help.
Have you tried set Root.UnevenRows=true?
Yes, I have UnevenRows set to true. I'll try to build a stand-alone reproduction. For now, I can only show a screen shot of a dialog with MessageElement and MultilineEntryElements added. You can clearly see that the height of both rows is incorrect. Since other people managed to build controls of variable height, I would appreciate any clues. I may well miss something.
Is there any more on this? Simple code to repro? Or have you already solved whatever it was?
Yes, I finally have a very simple project that reproduces the issue: https://github.com/asednev/MvvmCrossIssue
Try to replace this code in MyViewController.cs (starts from line 24)
Root = new RootElement("Test")
Root.UnevenRows = true;
var root = new RootElement("Test")
root.UnevenRows = true;
Root = root;
This fixed it. Thank you SeeD-Seifer.
Looking through the Dialog code this seems to come from the MT.D version I forked.
It looks like the sizing info is only used from within ReloadData() so maybe this is down to CrossUI.Touch never calling that method.
Will have a closer look later.
Thanks all - for the issue, the sample and the workaround/fix.
Stuart, when I did my research on this issue, I came across several bug reports about sizing info not working in MT.D. It might well be possible that it was fixed after you forked it.
Going to reopen this one up.
would be nice to be able to reload the cell later in it's life
need to find some way to call
at some point (maybe on UI change)
For a sample of the current problem, consider the current Details page on CustomerManagement (normal - not AutoViews)
CrossUI/Dialog has been removed as of 41f1915