Bug 60038 - Monotouch.Dialog UITableView gets new header , footer on iOS 11 ??
Summary: Monotouch.Dialog UITableView gets new header , footer on iOS 11 ??
Alias: None
Product: iOS
Classification: Xamarin
Component: MonoTouch.Dialog ()
Version: XI 11.4 (d15-5)
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2017-10-07 22:41 UTC by Ian
Modified: 2017-10-09 17:00 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

red area is new ?? (415.31 KB, image/png)
2017-10-07 22:41 UTC, Ian

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Ian 2017-10-07 22:41:59 UTC
Created attachment 25208 [details]
red area is new ??

I'm assuming this is a bug since MonoTouch.Dialog has worked for many years but iOS 11 does something wonky.

I'm maintaining a bunch of popular apps based on MonoTouch.Dialog. In iOS 11, all the Tables that are created by Monotouch.Dialog are getting these headers and footer areas. See image, red boxes. How do I remove them?

MonoTouch.Dialog is based on the UITableView so I am assuming a default setting is off.


Comment 1 Ian 2017-10-07 22:56:33 UTC
I found a solution.

Please change the default behaviour of MonoTouch.Dialog on iOS 10 and above to add 0 to the Estimated H/W as shown below

	root.Add (section);
	this.Root = root;
	this.Root.TableView.EstimatedSectionFooterHeight = 0;
	this.Root.TableView.EstimatedSectionHeaderHeight = 0;
Comment 2 Vincent Dondain [MSFT] 2017-10-09 15:47:24 UTC
Hi, could you please provide a quick test case to reproduce as well as your version information?

I don't seen any difference between iOS 9, 10 and 11 with regard to the top and bottom margin of the table view.

Also I don't see `EstimatedSectionFooterHeight = 0` and `EstimatedSectionHeaderHeight = 0` having an effect either. If you add a `new Section ()` there should not be a section.
Comment 3 Ian 2017-10-09 17:00:54 UTC
Perhaps it is only my project then, adding the Estimated values fixes it. I don't have a proj that can duplicate the issue without sending confidential code.